1 // RUN: %clang_cc1 -std=c++11 -verify %s
2
f()3 template<int &...Ns> int f() {
4 return sizeof...(Ns);
5 }
6 template int f<>();
7
g()8 template<typename ...T> int g() {
9 return [...x = T()] { // expected-warning 2{{extension}}
10 return sizeof...(x);
11 }();
12 }
13 template int g<>();
14