summaryrefslogtreecommitdiff
path: root/test/CodeGen
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-06-28 19:49:49 +0000
committerChris Lattner <sabre@nondot.org>2009-06-28 19:49:49 +0000
commitae0b24376708657a16ff57227241ea86dc4f062b (patch)
tree698cd1cae5321ac941d26e16b872a6b87217600a /test/CodeGen
parentdde2598cfbaafd71e5d6926f0beb6b77599de28e (diff)
downloadclang-ae0b24376708657a16ff57227241ea86dc4f062b.tar.gz
make these tests pass with the stack canary stuff even on targets where they default to on.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@74412 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen')
-rw-r--r--test/CodeGen/attributes.c2
-rw-r--r--test/CodeGen/unwind-attr.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/test/CodeGen/attributes.c b/test/CodeGen/attributes.c
index a5de4f4b42..8f157f3d31 100644
--- a/test/CodeGen/attributes.c
+++ b/test/CodeGen/attributes.c
@@ -60,7 +60,7 @@ int t17() {
extern int t18 __attribute__((weak_import));
int t18 = 1;
-// RUN: grep 'define i[0-9]* @t19() nounwind {' %t &&
+// RUN: grep 'define i[0-9]* @t19()' %t &&
extern int t19(void) __attribute__((weak_import));
int t19(void) {
return 10;
diff --git a/test/CodeGen/unwind-attr.c b/test/CodeGen/unwind-attr.c
index b2890c4c10..4954a0b59c 100644
--- a/test/CodeGen/unwind-attr.c
+++ b/test/CodeGen/unwind-attr.c
@@ -1,5 +1,5 @@
-// RUN: clang-cc -fexceptions -emit-llvm -o - %s | grep "@foo() {" | count 1 &&
-// RUN: clang-cc -emit-llvm -o - %s | grep "@foo() nounwind {" | count 1
+// RUN: clang-cc -fexceptions -emit-llvm -o - %s | grep "@foo()" | not grep nounwind &&
+// RUN: clang-cc -emit-llvm -o - %s | grep "@foo()" | grep nounwind
int foo(void) {
}