[clang] Implement lifetime analysis for lifetime_capture_by(X) (#115921)
[llvm-project.git] / clang / test / SemaTemplate / sizeof-pack.cpp
blob274726a2315077f5121d747b8706df4f20c1d3ba
1 // RUN: %clang_cc1 -std=c++11 -verify %s
3 template<int &...Ns> int f() {
4 return sizeof...(Ns);
6 template int f<>();
8 template<typename ...T> int g() {
9 return [...x = T()] { // expected-warning 2{{extension}}
10 return sizeof...(x);
11 }();
13 template int g<>();