Debian Codegraph @

gcc/testsuite/g++.dg/parse/ambig7.C

raw
1 // PR c++/60361
2
3 struct Helper
4 {
5 Helper(int a, void (*pfunc)());
6 };
7
8 template <int I> void function();
9
10 const int A = 1;
11 const int B = 2;
12
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>);