☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
g++.dg
/
cpp1z
/
nontype4.C
☽
☼
gcc/testsuite/g++.dg/cpp1z/nontype4.C
code
plain
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>();