Debian Codegraph @

gcc/testsuite/g++.dg/cpp1z/inline-var6.C

raw
1 // PR c++/87921
2 // { dg-do compile { target c++17 } }
3
4 template <class H>
5 struct X
6 {
7 static inline long x[] = { 1L };
8 long foo () { return x[0]; }
9 };
10
11 void
12 bar ()
13 {
14 class L {};
15 X<L> v {};
16 }