Merge -r 127928:132243 from trunk
[official-gcc.git] / gcc / testsuite / g++.dg / tls / init-2.C
blobb4407d33a715f42d95ab739a56e7a07fc263e0f1
1 /* Invalid initializations.  */
2 /* { dg-require-effective-target tls_native } */
4 extern __thread int i;
5 __thread int *p = &i;   /* { dg-error "dynamically initialized" } */
7 extern int f();
8 __thread int j = f();   /* { dg-error "dynamically initialized" } */
10 struct S
12   S();
14 __thread S s;           /* { dg-error "" } two errors here */