Debian Codegraph @

gcc/testsuite/g++.dg/cpp0x/sfinae19.C

raw
1 // PR c++/48737
2 // { dg-do compile { target c++11 } }
3
4 template<class T>
5 T&& create();
6
7 template<class T, class... Args>
8 decltype(T{create<Args>()...}, char()) f(int);
9
10 template<class, class...>
11 char (&f(...))[2];
12
13 static_assert(sizeof(f<int[1], int, int>(0)) != 1, "Error");