Debian Codegraph @

gcc/testsuite/g++.dg/other/static5.C

raw
1 struct S
2 {
3 static int i;
4 const static double d;
5 };
6
7 static int S::i; // { dg-error "1:.static. may not be used" }
8 const static double S::d = 1.0; // { dg-error "7:.static. may not be used" }