diff options
Diffstat (limited to 'test/SemaCXX/cxx11-thread-local-print.cpp')
-rw-r--r-- | test/SemaCXX/cxx11-thread-local-print.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/SemaCXX/cxx11-thread-local-print.cpp b/test/SemaCXX/cxx11-thread-local-print.cpp index 9d9a82b..1adafbd 100644 --- a/test/SemaCXX/cxx11-thread-local-print.cpp +++ b/test/SemaCXX/cxx11-thread-local-print.cpp @@ -7,3 +7,9 @@ __thread int gnu_tl; _Thread_local int c11_tl; thread_local int cxx11_tl; +// CHECK: void foo() { +// CHECK: thread_local int cxx11_tl; +// CHECK: } +void foo() { + thread_local int cxx11_tl; +} |