[cfe-commits] r56733 - /cfe/trunk/test/CodeGen/attributes.c
Daniel Dunbar
daniel at zuster.org
Fri Sep 26 17:39:13 PDT 2008
Author: ddunbar
Date: Fri Sep 26 19:39:13 2008
New Revision: 56733
URL: http://llvm.org/viewvc/llvm-project?rev=56733&view=rev
Log:
Fix attributes test case to not run clang umpteen times.
Modified:
cfe/trunk/test/CodeGen/attributes.c
Modified: cfe/trunk/test/CodeGen/attributes.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGen/attributes.c?rev=56733&r1=56732&r2=56733&view=diff
==============================================================================
--- cfe/trunk/test/CodeGen/attributes.c (original)
+++ cfe/trunk/test/CodeGen/attributes.c Fri Sep 26 19:39:13 2008
@@ -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")));
More information about the cfe-commits
mailing list