1 // { dg-options "-fdiagnostics-show-caret" }
2 // { dg-do compile { target c++11 } }
4 thread_local __thread int a; // { dg-error "14:both .__thread. and .thread_local. specified" }
5 /* { dg-begin-multiline-output "" }
6 thread_local __thread int a;
8 { dg-end-multiline-output "" } */
9 __thread thread_local int b; // { dg-error "10:both .__thread. and .thread_local. specified" }
10 /* { dg-begin-multiline-output "" }
11 __thread thread_local int b;
13 { dg-end-multiline-output "" } */