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