summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGen
diff options
context:
space:
mode:
authorEric Christopher <echristo@apple.com>2010-12-02 02:30:43 +0000
committerEric Christopher <echristo@apple.com>2010-12-02 02:30:43 +0000
commitc629a5c7d00f2fd52784924b0108a0c59a097783 (patch)
treedf1ead2fc41916111e4cfe2e5e96ab098ae74c65 /clang/test/CodeGen
parent690c2d1ed6d7db163ec71f7e3908dd74375e5c35 (diff)
downloadbcm5719-llvm-c629a5c7d00f2fd52784924b0108a0c59a097783.tar.gz
bcm5719-llvm-c629a5c7d00f2fd52784924b0108a0c59a097783.zip
FileCheckize.
llvm-svn: 120648
Diffstat (limited to 'clang/test/CodeGen')
-rw-r--r--clang/test/CodeGen/thread-specifier.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/clang/test/CodeGen/thread-specifier.c b/clang/test/CodeGen/thread-specifier.c
index a16103f08f6..a1f3e168000 100644
--- a/clang/test/CodeGen/thread-specifier.c
+++ b/clang/test/CodeGen/thread-specifier.c
@@ -1,11 +1,15 @@
-// RUN: %clang_cc1 -triple i686-pc-linux-gnu -emit-llvm -o - %s | grep thread_local | count 4
-// RUN: %clang_cc1 -triple i686-pc-linux-gnu -emit-llvm -o - %s | not grep common
+// RUN: %clang_cc1 -triple i686-pc-linux-gnu -emit-llvm -o - %s | FileCheck %s
+// CHECK: @b = external thread_local global
+// CHECK: @d.e = internal thread_local global
+// CHECK: @d.f = internal thread_local global
+// CHECK: @a = thread_local global
__thread int a;
extern __thread int b;
-int c() { return &b; }
+int c() { return *&b; }
int d() {
__thread static int e;
__thread static union {float a; int b;} f = {.b = 1};
+ return 0;
}
OpenPOWER on IntegriCloud