diff options
author | Enea Zaffanella <zaffanella@cs.unipr.it> | 2013-05-04 11:26:59 +0000 |
---|---|---|
committer | Enea Zaffanella <zaffanella@cs.unipr.it> | 2013-05-04 11:26:59 +0000 |
commit | aa3d68af3b533ee79a862f2c6d159b79d278a6fc (patch) | |
tree | 5053bc82c225888fcfb84bcca493ed43f667604e | |
parent | 269cc2daf3a36ad878ea1d4cb356aa38311f6e2d (diff) |
Moved pretty printer test for thread local storage in its own file
and specified the triple.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@181115 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | test/SemaCXX/cxx11-ast-print.cpp | 7 | ||||
-rw-r--r-- | test/SemaCXX/cxx11-thread-local-print.cpp | 9 |
2 files changed, 9 insertions, 7 deletions
diff --git a/test/SemaCXX/cxx11-ast-print.cpp b/test/SemaCXX/cxx11-ast-print.cpp index b239762bb0..f7bfc1123a 100644 --- a/test/SemaCXX/cxx11-ast-print.cpp +++ b/test/SemaCXX/cxx11-ast-print.cpp @@ -43,10 +43,3 @@ const char *p10 = 3.300e+15_fritz; // CHECK-NOT: ; -// 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; - diff --git a/test/SemaCXX/cxx11-thread-local-print.cpp b/test/SemaCXX/cxx11-thread-local-print.cpp new file mode 100644 index 0000000000..9d9a82b7e6 --- /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; + |