brintos

brintos / llvm-project-archived public Read only

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