aboutsummaryrefslogtreecommitdiff
path: root/test/CodeGen/init.c
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-04-17 06:53:44 +0000
committerChris Lattner <sabre@nondot.org>2010-04-17 06:53:44 +0000
commit7a22f02a02616be8fd817529f1696a88a35ee041 (patch)
tree056a1d750aa2ba601c704723d63a5927fb07a6c5 /test/CodeGen/init.c
parentfb36d21960a3bd422665a961eac6ca269cd6445b (diff)
revert r101568, which miscompiles this testcase, distilled from ldecod:
void exit_picture() { char yuv_types[4][6]= {"4:0:0","4:2:0","4:2:2","4:4:4"}; foo(yuv_types); } git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@101623 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/init.c')
-rw-r--r--test/CodeGen/init.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/CodeGen/init.c b/test/CodeGen/init.c
index d48e723c58..13ffad1731 100644
--- a/test/CodeGen/init.c
+++ b/test/CodeGen/init.c
@@ -1,4 +1,4 @@
-// RUN: %clang_cc1 -triple i386-unknown-unknown -emit-llvm %s -o - | FileCheck %s
+// RUN: %clang_cc1 -triple i386-unknown-unknown -emit-llvm %s -o %t
void f1() {
// Scalars in braces.
@@ -22,8 +22,8 @@ void f3() {
}
// Constants
-// CHECK: @g3 = constant i32 10
-// CHECK: @f4.g4 = internal constant i32 12
+// RUN: grep '@g3 = constant i32 10' %t
+// RUN: grep '@f4.g4 = internal constant i32 12' %t
const int g3 = 10;
int f4() {
static const int g4 = 12;