* decl.c (make_typename_type): s/parameters/arguments/.
[official-gcc.git] / gcc / testsuite / g++.dg / cpp0x / sfinae-nullptr1.C
blob7f3c5c4eb3d1e2572c472595a8114efe45f01978
1 // DR 1423, PR c++/52174
2 // { dg-do compile { target c++11 } }
4 template<class T>
5 T&& make();
7 template<class T>
8 void sink(T);
10 template<class T1, class T2,
11   class = decltype(sink<T2>(make<T1>()))
13 auto f(int) -> char(&)[1];
15 template<class, class>
16 auto f(...) -> char(&)[2];
18 static_assert(sizeof(f<decltype(nullptr), bool>(0)) != 1, "");