summaryrefslogtreecommitdiff
path: root/test/CodeGen/attributes.c
diff options
context:
space:
mode:
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>2008-06-12 12:40:02 +0000
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>2008-06-12 12:40:02 +0000
commitc577a0e9bf5812719d08c002a57b263681938aea (patch)
treea893984f97f9f5ae5f0b5e7bea9597d9dc46d851 /test/CodeGen/attributes.c
parent68617fd6b322c6335dc0d72d828b7a2338b52fad (diff)
downloadclang-c577a0e9bf5812719d08c002a57b263681938aea.tar.gz
Multiple tests in a single test file must be linked with '&&'.
Otherwise, failing tests other than the last one will not be reported. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@52231 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/attributes.c')
-rw-r--r--test/CodeGen/attributes.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/test/CodeGen/attributes.c b/test/CodeGen/attributes.c
index 95273f84a6..950a7a7b55 100644
--- a/test/CodeGen/attributes.c
+++ b/test/CodeGen/attributes.c
@@ -1,27 +1,27 @@
-// RUN: clang -emit-llvm < %s | grep 't1.*noreturn'
+// RUN: clang -emit-llvm < %s | grep 't1.*noreturn' &&
void t1() __attribute__((noreturn));
void t1() {}
-// RUN: clang -emit-llvm < %s | grep 't2.*nounwind'
+// RUN: clang -emit-llvm < %s | grep 't2.*nounwind' &&
void t2() __attribute__((nothrow));
void t2() {}
-// RUN: clang -emit-llvm < %s | grep 'weak.*t3'
+// RUN: clang -emit-llvm < %s | grep 'weak.*t3' &&
void t3() __attribute__((weak));
void t3() {}
-// RUN: clang -emit-llvm < %s | grep 'hidden.*t4'
+// RUN: clang -emit-llvm < %s | grep 'hidden.*t4' &&
void t4() __attribute__((visibility("hidden")));
void t4() {}
-// RUN: clang -emit-llvm < %s | grep 't5.*weak'
+// RUN: clang -emit-llvm < %s | grep 't5.*weak' &&
int t5 __attribute__((weak)) = 2;
-// RUN: clang -emit-llvm < %s | grep 't6.*protected'
+// 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'
+// RUN: clang -emit-llvm < %s | grep 't7.*noreturn' &&
+// RUN: clang -emit-llvm < %s | grep 't7.*nounwind' &&
void t7() __attribute__((noreturn, nothrow));
void t7() {}