reflect: canonicalize types returned by StructOf() and friends
[official-gcc.git] / gcc / testsuite / obj-c++.dg / tls / init-2.mm
blob327c309e98584e5b22a88fb63c026b8a2ab1f6bf
1 /* Invalid initializations.  */
2 /* { dg-require-effective-target tls } */
4 extern __thread int i;
5 __thread int *p = &i;   /* { dg-error "dynamic initialization" } */
7 extern int f();
8 __thread int j = f();   /* { dg-error "dynamic initialization" } */
10 struct S
12   S();
14 __thread S s;           /* { dg-error "dynamic initialization" } */