blob: 9a5b8791d24358d0b37cd17be98319b4e5d9577c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
// PR c++/60361
struct Helper
{
Helper(int a, void (*pfunc)());
};
template <int I> void function();
const int A = 1;
const int B = 2;
Helper testOk(A, function<A>);
Helper testOk2(int(A), function<B>);
Helper testOk3((int(A)), function<A>);
Helper testFail(int(A), function<A>);
|