From ae0b24376708657a16ff57227241ea86dc4f062b Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Sun, 28 Jun 2009 19:49:49 +0000 Subject: [PATCH] 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 --- test/CodeGen/attributes.c | 2 +- test/CodeGen/unwind-attr.c | 4 ++-- 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) { } -- 2.40.0