In gcc/: 2010-10-05 Nicola Pero <nicola.pero@meta-innovation.com>
[gcc.git] / gcc / testsuite / obj-c++.dg / tls / init-2.mm
1 /* Invalid initializations. */
2 /* { dg-require-effective-target tls } */
3
4 extern __thread int i;
5 __thread int *p = &i; /* { dg-error "dynamically initialized" } */
6
7 extern int f();
8 __thread int j = f(); /* { dg-error "dynamically initialized" } */
9
10 struct S
11 {
12 S();
13 };
14 __thread S s; /* { dg-error "" } two errors here */