summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/template/sfinae18.C
blob: bbc39cb3ac0f3c50dbcdbfd529383583226b233a (plain)
1
2
3
4
5
6
7
8
9
10
// PR c++/41468

typedef int Ft(int);
struct A { operator Ft*(); };
struct B { operator Ft*(); };
struct C : A, B { };

template<typename C> void f(int (*a)[sizeof(C()(0))]);
template<typename C> void f(...);
int main() { f<C>(0); }