* decl.c (make_typename_type): s/parameters/arguments/.
[official-gcc.git] / gcc / testsuite / g++.dg / cpp0x / sfinae13.C
blob3cff1b4b9b1bc289d11510a2751d1f0faf08dda4
1 // PR c++/48581
2 // { dg-do compile { target c++11 } }
4 template<class T>
5 T&& create();
7 template<class T,
8   class = decltype(foo(create<T>()))
10 auto f(int) -> char;
12 template<class>
13 auto f(...) -> char (&)[2];
15 struct S {};
16 void foo(S);
18 static_assert(sizeof(f<S>(0)) == 1, "Error"); // (#)
20 int main() {}