]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/testsuite/g++.dg/cpp0x/sfinae67.C
Daily bump.
[thirdparty/gcc.git] / gcc / testsuite / g++.dg / cpp0x / sfinae67.C
1 // PR c++/84689
2 // { dg-do compile { target c++11 } }
3
4 struct base {
5 void operator()();
6 };
7
8 struct a : base { };
9 struct b : base { };
10
11 struct f : a, b {
12 using a::operator();
13 using b::operator();
14 };
15
16 template <class T> auto g(int) -> decltype(T()());
17 template <class T> auto g(...) -> int;
18
19 using type = decltype(g<f>(0));
20 using type = int;