Debian Codegraph @

gcc/testsuite/g++.dg/cpp1z/nontype9.C

raw
1 // PR c++/123529
2 // { dg-do compile { target c++17 } }
3
4 template<int* P>
5 void f();
6
7 template<class T>
8 struct A {
9 static void g() {
10 static int i;
11 f<&i>();
12 }
13 };
14
15 template struct A<char>;
16 template struct A<int>;