☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
g++.dg
/
other
/
static5.C
☽
☼
gcc/testsuite/g++.dg/other/static5.C
code
plain
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" }