summaryrefslogtreecommitdiffstats
path: root/test/SemaCXX/cxx11-thread-local-print.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/SemaCXX/cxx11-thread-local-print.cpp')
-rw-r--r--test/SemaCXX/cxx11-thread-local-print.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/SemaCXX/cxx11-thread-local-print.cpp b/test/SemaCXX/cxx11-thread-local-print.cpp
new file mode 100644
index 0000000..9d9a82b
--- /dev/null
+++ b/test/SemaCXX/cxx11-thread-local-print.cpp
@@ -0,0 +1,9 @@
+// RUN: %clang_cc1 -std=c++11 -triple=x86_64-linux-gnu -ast-print %s | FileCheck %s
+
+// CHECK: __thread int gnu_tl;
+// CHECK: _Thread_local int c11_tl;
+// CHECK: thread_local int cxx11_tl;
+__thread int gnu_tl;
+_Thread_local int c11_tl;
+thread_local int cxx11_tl;
+
OpenPOWER on IntegriCloud