From: Eli Friedman Date: Tue, 20 May 2008 09:04:19 +0000 (+0000) Subject: Fix test (it was incorrectly succeeding). X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a8ea76a45a8771245e70e9b603eac8d9df1bcfad;p=clang Fix test (it was incorrectly succeeding). git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@51310 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/CodeGen/builtin-stackaddress.c b/test/CodeGen/builtin-stackaddress.c index 2b9c799661..950723d5d3 100644 --- a/test/CodeGen/builtin-stackaddress.c +++ b/test/CodeGen/builtin-stackaddress.c @@ -1,12 +1,5 @@ -// RUN: clang -emit-llvm < %s -void* a(unsigned x) { -return __builtin_return_address(0); -} - -void* c(unsigned x) { -return __builtin_frame_address(0); -} -// RUN: clang -emit-llvm < %s +// RUN: clang -emit-llvm < %s | grep "llvm.returnaddress" +// RUN: clang -emit-llvm < %s | grep "llvm.frameaddress" void* a(unsigned x) { return __builtin_return_address(0); }