Debian Codegraph @

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

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