Home | History | Annotate | Download | only in Sema

Lines Matching refs:__thread

13 __thread int t1;
14 __thread extern int t2;
15 __thread static int t3;
17 // expected-warning@-3 {{'__thread' before 'extern'}}
18 // expected-warning@-3 {{'__thread' before 'static'}}
21 __thread __private_extern__ int t4;
22 struct t5 { __thread int x; };
24 // expected-error-re@-2 {{'(__thread|_Thread_local|thread_local)' is only allowed on variable declarations}}
30 __thread int t6();
32 // expected-error@-2 {{'__thread' is only allowed on variable declarations}}
39 int f(__thread int t7) { // expected-error {{' is only allowed on variable declarations}}
40 __thread int t8;
42 // expected-error@-2 {{'__thread' variables must have global storage}}
46 extern __thread int t9;
47 static __thread int t10;
48 __thread __private_extern__ int t11;
50 __thread auto int t12a; // expected-error-re {{cannot combine with previous '(__thread|_Thread_local)' declaration specifier}}
51 auto __thread int t12b; // expected-error {{cannot combine with previous 'auto' declaration specifier}}
53 __thread auto t12a = 0; // expected-error-re {{'_Thread_local' variables must have global storage}}
54 auto __thread t12b = 0; // expected-error-re {{'_Thread_local' variables must have global storage}}
56 __thread register int t13a; // expected-error-re {{cannot combine with previous '(__thread|_Thread_local|thread_local)' declaration specifier}}
57 register __thread int t13b; // expected-error {{cannot combine with previous 'register' declaration specifier}}
60 __thread typedef int t14; // expected-error-re {{cannot combine with previous '(__thread|_Thread_local|thread_local)' declaration specifier}}
61 __thread int t15; // expected-note {{previous declaration is here}}
64 __thread int t16; // expected-error {{thread-local declaration of 't16' follows non-thread-local declaration}}
74 __thread int thread_int;
87 __thread int non_const_init = non_const();
101 __thread S s;
110 __thread int aggregate[10] = {0};