llvm-project/clang/test/SemaTemplate/sizeof-pack.cpp

8 lines
146 B
C++
Raw Normal View History

// RUN: %clang_cc1 -std=c++11 -verify %s
// expected-no-diagnostics
template<int &...Ns> int f() {
return sizeof...(Ns);
}
template int f<>();