aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/obj-c++.dg/tls/static-1a.mm
blob: 40974205fd9be3c1e4ce59d392a422cbc8e95a0d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// { dg-skip-if "Additional Source File"  *-*-* "*" ""  }
// This is the additional source file for test static-1.mm

struct A
{
  static __thread int i;
};

int
test ()
{
  if (A::i != 8)
    return 1;

  A::i = 17;
  return 0;
}