summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/init/const3.C
blob: 96cb6f9094f3de397a1ccb9ea48f95a1d7ec7d5f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// { dg-do run }

struct S {
  static const int i = 3;
};

const int S::i;

int main () {
  if (!S::i)
    return 1;
}