Daily bump.
[gcc.git] / gcc / testsuite / g++.dg / diagnostic / thread-thread_local.C
blob4f2264ce05e6d0951c87591c55b68a41fcd0a10d
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;
7  ~~~~~~~~~~~~ ^~~~~~~~
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;
12  ~~~~~~~~ ^~~~~~~~~~~~
13    { dg-end-multiline-output "" } */