summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.other/static1.C
blob: 2b042526466bc15233d381e348894db3fe90580a (plain)
1
2
3
4
5
6
7
8
9
// { dg-do assemble  }
extern "C" void abort();

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

const int S::i = 2; // { dg-error "" } duplicate initialization