2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / g++.dg / tls / init-2.C
blob4cc31c909ac88fa71aa7f79bf929edf9d53e1947
1 /* Invalid initializations.  */
3 extern __thread int i;
4 __thread int *p = &i;   /* { dg-error "dynamically initialized" } */
6 extern int f();
7 __thread int j = f();   /* { dg-error "dynamically initialized" } */
9 struct S
11   S();
13 __thread S s;           /* { dg-error "" } two errors here */