Mercurial > hg > CbC > CbC_llvm
diff clang/test/SemaTemplate/lambda-capture-pack.cpp @ 236:c4bab56944e8 llvm-original
LLVM 16
author | kono |
---|---|
date | Wed, 09 Nov 2022 17:45:10 +0900 (2022-11-09) |
parents | 1d019706d866 |
children |
line wrap: on
line diff
--- a/clang/test/SemaTemplate/lambda-capture-pack.cpp Wed Jul 21 10:27:27 2021 +0900 +++ b/clang/test/SemaTemplate/lambda-capture-pack.cpp Wed Nov 09 17:45:10 2022 +0900 @@ -18,7 +18,7 @@ namespace PR41576 { template <class... Xs> constexpr int f(Xs ...xs) { return [&](auto ...ys) { // expected-note {{instantiation}} - return ((xs + ys), ...); // expected-warning {{unused}} + return ((xs + ys), ...); // expected-warning {{left operand of comma operator has no effect}} }(1, 2); } static_assert(f(3, 4) == 6); // expected-note {{instantiation}}