• Home
  • Raw
  • Download

Lines Matching +full:- +full:wno +full:- +full:error

1 // RUN: %clang_cc1 -triple i686-pc-linux-gnu -fsyntax-only -Wno-private-extern -verify -pedantic %s…
2 // RUN: %clang_cc1 -triple i686-pc-linux-gnu -fsyntax-only -Wno-private-extern -verify -pedantic -x…
3 // RUN: %clang_cc1 -triple i686-pc-linux-gnu -fsyntax-only -Wno-private-extern -verify -pedantic %s…
4 …RUN: %clang_cc1 -triple i686-pc-linux-gnu -fsyntax-only -Wno-private-extern -verify -pedantic -x c…
5 …ang_cc1 -triple i686-pc-linux-gnu -fsyntax-only -Wno-private-extern -verify -pedantic -x c++ %s -D…
6 …lang_cc1 -triple i686-pc-linux-gnu -fsyntax-only -Wno-private-extern -verify -pedantic -x c++ %s -
17 // expected-warning@-3 {{'__thread' before 'extern'}}
18 // expected-warning@-3 {{'__thread' before 'static'}}
24 // expected-error-re@-2 {{'{{__thread|_Thread_local|thread_local}}' is only allowed on variable dec…
27 // expected-error@-5 {{type name does not allow storage class to be specified}}
32 // expected-error@-2 {{'__thread' is only allowed on variable declarations}}
34 // expected-error@-4 {{'_Thread_local' is only allowed on variable declarations}}
36 // expected-error@-6 {{'thread_local' is only allowed on variable declarations}}
39 int f(__thread int t7) { // expected-error {{' is only allowed on variable declarations}} in f()
42 // expected-error@-2 {{'__thread' variables must have global storage}} in f()
44 // expected-error@-4 {{'_Thread_local' variables must have global storage}} in f()
50 …__thread auto int t12a; // expected-error-re {{cannot combine with previous '{{__thread|_Thread_lo… in f()
51 …auto __thread int t12b; // expected-error {{cannot combine with previous 'auto' declaration specif… in f()
53 __thread auto t12a = 0; // expected-error {{'_Thread_local' variables must have global storage}} in f()
54 auto __thread t12b = 0; // expected-error {{'_Thread_local' variables must have global storage}} in f()
56 …__thread register int t13a; // expected-error-re {{cannot combine with previous '{{__thread|_Threa… in f()
57 …register __thread int t13b; // expected-error {{cannot combine with previous 'register' declaratio… in f()
60 __thread typedef int t14; // expected-error-re {{cannot combine with previous '{{__thread|_Thread_l…
61 __thread int t15; // expected-note {{previous definition is here}}
62 extern int t15; // expected-error {{non-thread-local declaration of 't15' follows thread-local decl…
63 extern int t16; // expected-note {{previous declaration is here}}
64 __thread int t16; // expected-error {{thread-local declaration of 't16' follows non-thread-local de…
67 extern thread_local int t17; // expected-note {{previous declaration is here}}
68 _Thread_local int t17; // expected-error {{thread-local declaration of 't17' with static initializa…
69 extern _Thread_local int t18; // expected-note {{previous declaration is here}}
70 thread_local int t18; // expected-error {{thread-local declaration of 't18' with dynamic initializa…
77 // expected-error@-2 {{initializer element is not a compile-time constant}}
83 constexpr int *thread_int_ptr_2 = &thread_int; // expected-error {{must be initialized by a constan…
89 // expected-error@-2 {{initializer element is not a compile-time constant}}
91 // expected-error@-4 {{initializer for thread-local variable must be a constant expression}}
93 // expected-note@-6 {{use 'thread_local' to allow this}}
103 // expected-error@-2 {{type of thread-local variable has non-trivial destruction}}
105 // expected-note@-4 {{use 'thread_local' to allow this}}
116 // expected-error@-2 {{initializer for thread-local variable must be a constant expression}}
118 // expected-note@-4 {{use 'thread_local' to allow this}}