/cp
[official-gcc.git] / gcc / testsuite / g++.dg / cpp1y / var-templ9.C
blob2ffb007addc78bf62e4153220b6c6883416dbaff
1 // { dg-do compile { target c++14 } }
3 struct X
5   template <class T> static int x;
6 };
8 int X::x = 42;                  // { dg-error "template" }
10 struct Y
12   static int y;
15 template <class T> int Y::y = 42; // { dg-error "template" }