r181115 - Moved pretty printer test for thread local storage in its own file

Enea Zaffanella zaffanella at cs.unipr.it
Sat May 4 04:27:00 PDT 2013


Author: enea
Date: Sat May  4 06:26:59 2013
New Revision: 181115

URL: http://llvm.org/viewvc/llvm-project?rev=181115&view=rev
Log:
Moved pretty printer test for thread local storage in its own file
and specified the triple.

Added:
    cfe/trunk/test/SemaCXX/cxx11-thread-local-print.cpp
Modified:
    cfe/trunk/test/SemaCXX/cxx11-ast-print.cpp

Modified: cfe/trunk/test/SemaCXX/cxx11-ast-print.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/SemaCXX/cxx11-ast-print.cpp?rev=181115&r1=181114&r2=181115&view=diff
==============================================================================
--- cfe/trunk/test/SemaCXX/cxx11-ast-print.cpp (original)
+++ cfe/trunk/test/SemaCXX/cxx11-ast-print.cpp Sat May  4 06:26:59 2013
@@ -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;
-

Added: cfe/trunk/test/SemaCXX/cxx11-thread-local-print.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/SemaCXX/cxx11-thread-local-print.cpp?rev=181115&view=auto
==============================================================================
--- cfe/trunk/test/SemaCXX/cxx11-thread-local-print.cpp (added)
+++ cfe/trunk/test/SemaCXX/cxx11-thread-local-print.cpp Sat May  4 06:26:59 2013
@@ -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;
+





More information about the cfe-commits mailing list