summaryrefslogtreecommitdiffstats
path: root/clang
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2008-09-27 00:39:13 +0000
committerDaniel Dunbar <daniel@zuster.org>2008-09-27 00:39:13 +0000
commit23b46ca1980e836ed864270b1da08c94675b13cc (patch)
tree1fb967642e9a23305d9b57da515e4620499b0ea1 /clang
parentdb937ec8fa3f1b81b846538ef73d7152c79c749f (diff)
downloadbcm5719-llvm-23b46ca1980e836ed864270b1da08c94675b13cc.tar.gz
bcm5719-llvm-23b46ca1980e836ed864270b1da08c94675b13cc.zip
Fix attributes test case to not run clang umpteen times.
llvm-svn: 56733
Diffstat (limited to 'clang')
-rw-r--r--clang/test/CodeGen/attributes.c20
1 files changed, 11 insertions, 9 deletions
diff --git a/clang/test/CodeGen/attributes.c b/clang/test/CodeGen/attributes.c
index 950a7a7b55f..45b0cebf792 100644
--- a/clang/test/CodeGen/attributes.c
+++ b/clang/test/CodeGen/attributes.c
@@ -1,30 +1,32 @@
-// RUN: clang -emit-llvm < %s | grep 't1.*noreturn' &&
+// RUN: clang -emit-llvm -o %t %s &&
+// RUN: grep 't1.*noreturn' %t &&
+// RUN: grep 't2.*nounwind' %t &&
+// RUN: grep 'weak.*t3' %t &&
+// RUN: grep 'hidden.*t4' %t &&
+// RUN: grep 't5.*weak' %t &&
+// RUN: grep 't6.*protected' %t &&
+// RUN: grep 't7.*noreturn' %t &&
+// RUN: grep 't7.*nounwind' %t &&
+// RUN: grep 't9.*alias.*weak.*t8' %t
+
void t1() __attribute__((noreturn));
void t1() {}
-// RUN: clang -emit-llvm < %s | grep 't2.*nounwind' &&
void t2() __attribute__((nothrow));
void t2() {}
-// RUN: clang -emit-llvm < %s | grep 'weak.*t3' &&
void t3() __attribute__((weak));
void t3() {}
-// RUN: clang -emit-llvm < %s | grep 'hidden.*t4' &&
void t4() __attribute__((visibility("hidden")));
void t4() {}
-// RUN: clang -emit-llvm < %s | grep 't5.*weak' &&
int t5 __attribute__((weak)) = 2;
-// RUN: clang -emit-llvm < %s | grep 't6.*protected' &&
int t6 __attribute__((visibility("protected")));
-// RUN: clang -emit-llvm < %s | grep 't7.*noreturn' &&
-// RUN: clang -emit-llvm < %s | grep 't7.*nounwind' &&
void t7() __attribute__((noreturn, nothrow));
void t7() {}
-// RUN: clang -emit-llvm < %s | grep 't9.*alias.*weak.*t8'
void __t8() {}
void t9() __attribute__((weak, alias("__t8")));
OpenPOWER on IntegriCloud