[cfe-commits] r120647 - /cfe/trunk/test/CodeGen/no-common.c

Eric Christopher echristo at apple.com
Wed Dec 1 18:13:28 PST 2010


Author: echristo
Date: Wed Dec  1 20:13:27 2010
New Revision: 120647

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

Modified:
    cfe/trunk/test/CodeGen/no-common.c

Modified: cfe/trunk/test/CodeGen/no-common.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGen/no-common.c?rev=120647&r1=120646&r2=120647&view=diff
==============================================================================
--- cfe/trunk/test/CodeGen/no-common.c (original)
+++ cfe/trunk/test/CodeGen/no-common.c Wed Dec  1 20:13:27 2010
@@ -1,6 +1,6 @@
-// RUN: %clang -emit-llvm -S -o %t %s
-// RUN: grep '@x = common global' %t
-// RUN: %clang -fno-common -emit-llvm -S -o %t %s
-// RUN: grep '@x = global' %t
+// RUN: %clang_cc1 %s -emit-llvm -o - | FileCheck %s -check-prefix=CHECK-DEFAULT
+// RUN: %clang_cc1 %s -fno-common -emit-llvm -o - | FileCheck %s -check-prefix=CHECK-NOCOMMON
 
+// CHECK-DEFAULT: @x = common global
+// CHECK-NOCOMMON: @x = global
 int x;





More information about the cfe-commits mailing list