[cfe-commits] r120648 - /cfe/trunk/test/CodeGen/thread-specifier.c

Eric Christopher echristo at apple.com
Wed Dec 1 18:30:44 PST 2010


Author: echristo
Date: Wed Dec  1 20:30:43 2010
New Revision: 120648

URL: http://llvm.org/viewvc/llvm-project?rev=120648&view=rev
Log:
FileCheckize.

Modified:
    cfe/trunk/test/CodeGen/thread-specifier.c

Modified: cfe/trunk/test/CodeGen/thread-specifier.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGen/thread-specifier.c?rev=120648&r1=120647&r2=120648&view=diff
==============================================================================
--- cfe/trunk/test/CodeGen/thread-specifier.c (original)
+++ cfe/trunk/test/CodeGen/thread-specifier.c Wed Dec  1 20:30:43 2010
@@ -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;
 }
 





More information about the cfe-commits mailing list