Merge from trunk
[official-gcc.git] / gcc / testsuite / g++.dg / parse / ambig7.C
blob9a5b8791d24358d0b37cd17be98319b4e5d9577c
1 // PR c++/60361
3 struct Helper
5   Helper(int a, void (*pfunc)());
6 };
8 template <int I> void function();
10 const int A = 1;
11 const int B = 2;
13 Helper testOk(A, function<A>);
14 Helper testOk2(int(A), function<B>);
15 Helper testOk3((int(A)), function<A>);
16 Helper testFail(int(A), function<A>);