aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp1z/inline-var6.C
blob: 27730106f27cfee3728658c22540722fed5cd38d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// PR c++/87921
// { dg-do compile { target c++17 } }

template <class H>
struct X
{
  static inline long x[] = { 1L };
  long foo () { return x[0]; }
};

void
bar ()
{
  class L {};
  X<L> v {};
}