Remove old autovect-branch by moving to "dead" directory.
[official-gcc.git] / old-autovect-branch / gcc / testsuite / g++.dg / tls / init-2.C
blobc9f646d3a1d93db2f4f1dbd71ea5304131be0fb5
1 /* Invalid initializations.  */
2 /* { dg-require-effective-target tls } */
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 */