From 7ef882dca03568e87372356025e41a3131d37f57 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Thu, 27 Aug 2009 23:22:19 +0000 Subject: [PATCH] convert to filecheck and force a triple so that this passes on big endian hosts. Fixes PR4792 llvm-svn: 80301 --- .../CodeGen/2008-07-22-bitfield-init-after-zero-len-array.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/clang/test/CodeGen/2008-07-22-bitfield-init-after-zero-len-array.c b/clang/test/CodeGen/2008-07-22-bitfield-init-after-zero-len-array.c index 19bf9a2b078e..348ea75ea295 100644 --- a/clang/test/CodeGen/2008-07-22-bitfield-init-after-zero-len-array.c +++ b/clang/test/CodeGen/2008-07-22-bitfield-init-after-zero-len-array.c @@ -1,5 +1,4 @@ -// RUN: clang-cc --emit-llvm -o %t %s && -// RUN: grep "i8 52" %t | count 1 +// RUN: clang-cc -triple=i686-apple-darwin9 --emit-llvm -o - %s | FileCheck %s struct et7 { float lv7[0]; @@ -9,3 +8,5 @@ struct et7 { 52, }; +// CHECK: @yv7 = global +// CHECK: i8 52, \ No newline at end of file