aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.dg/init/static-init3.C
blob: 9f89c3119b3d5a9c0092119858c8acc76bd69451 (plain)
1
2
3
4
5
6
7
8
9
// PR c++/55137
// s should have constant initialization.
// { dg-final { scan-assembler-not "GLOBAL" } }

struct S {
  int b;
};

struct S s = { -1 + (int)(sizeof(int) - 1) };