summaryrefslogtreecommitdiff
path: root/test/FrontendC/pr4349.c
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2009-06-12 23:31:14 +0000
committerDan Gohman <gohman@apple.com>2009-06-12 23:31:14 +0000
commit0de1951a333eb74459d78dd2863eda64db8a1984 (patch)
tree08704601e8e40b49c81294ab44e08a2b417cb071 /test/FrontendC/pr4349.c
parentf53e6b5c133a0e7baba4b4f20b952903a74ff50f (diff)
downloadllvm-0de1951a333eb74459d78dd2863eda64db8a1984.tar.gz
llvm-0de1951a333eb74459d78dd2863eda64db8a1984.tar.bz2
llvm-0de1951a333eb74459d78dd2863eda64db8a1984.tar.xz
Adjust this test's regex strings so that they work regardless
of the target's pointer size. This avoids the need for -m32 on the llvm-gcc command-line, which some targets may not support. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@73270 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/FrontendC/pr4349.c')
-rw-r--r--test/FrontendC/pr4349.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/FrontendC/pr4349.c b/test/FrontendC/pr4349.c
index 98acac1f13..890482ea06 100644
--- a/test/FrontendC/pr4349.c
+++ b/test/FrontendC/pr4349.c
@@ -1,9 +1,9 @@
// RUN: %llvmgcc %s -S -emit-llvm -O0 -o - | grep svars2 | grep {\\\[2 x \\\[2 x i8\\\]\\\]}
-// RUN: %llvmgcc -m32 %s -S -emit-llvm -O0 -o - | grep svars2 | grep {i32 1} | count 1
+// RUN: %llvmgcc %s -S -emit-llvm -O0 -o - | grep svars2 | grep {, i\[\[:digit:\]\]\\+ 1)} | count 1
// RUN: %llvmgcc %s -S -emit-llvm -O0 -o - | grep svars3 | grep {\\\[2 x i16\\\]}
-// RUN: %llvmgcc -m32 %s -S -emit-llvm -O0 -o - | grep svars3 | grep {i32 1} | count 1
+// RUN: %llvmgcc %s -S -emit-llvm -O0 -o - | grep svars3 | grep {, i\[\[:digit:\]\]\\+ 1)} | count 1
// RUN: %llvmgcc %s -S -emit-llvm -O0 -o - | grep svars4 | grep {\\\[2 x \\\[2 x i8\\\]\\\]} | count 1
-// RUN: %llvmgcc -m32 %s -S -emit-llvm -O0 -o - | grep svars4 | grep {i32 1, i32 1} | count 1
+// RUN: %llvmgcc %s -S -emit-llvm -O0 -o - | grep svars4 | grep {, i\[\[:digit:\]\]\\+ 1, i\[\[:digit:\]\]\\+ 1)} | count 1
// PR 4349
union reg