]> granicus.if.org Git - clang/commitdiff
Use #define trickery to de-XFAIL test/Coverage/codegen-gnu.m while
authorDaniel Dunbar <daniel@zuster.org>
Fri, 24 Oct 2008 08:42:52 +0000 (08:42 +0000)
committerDaniel Dunbar <daniel@zuster.org>
Fri, 24 Oct 2008 08:42:52 +0000 (08:42 +0000)
still getting coverage for non-IRgen cases.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@58084 91177308-0d34-0410-b5e6-96231b3b80d8

test/Coverage/codegen-gnu.m
test/Coverage/objc-language-features.inc

index 63cd46850524b55e2c35a8b8be2c9a5bafb40820..9d5aa89fa501276b826b5973e689b999a7636a93 100644 (file)
@@ -1,5 +1,7 @@
-// RUN: clang -fgnu-runtime -emit-llvm -o %t %s &&
-// RUN: clang -g -fgnu-runtime -emit-llvm -o %t %s
-// XFAIL
+// RUN: clang -DIRGENABLE_GNU -DIRGENABLE -fgnu-runtime -emit-llvm -o %t %s && 
+// RUN: clang -DIRGENABLE_GNU -DIRGENABLE -g -fgnu-runtime -emit-llvm -o %t %s &&
+
+// FIXME: Remove once GNU can IRgen everything.
+// RUN: ! clang -fgnu-runtime -emit-llvm -o %t %s
 
 #include "objc-language-features.inc"
index 0e6237e012523ca05f017fbdb8d10d87dd5b9022..793d0e5a44217ad6e9c9fa7845add24e0085c820 100644 (file)
 @end
 
 int f0(id x) {
+#ifndef IRGENABLE_GNU
 #ifndef IRGENABLE
   @synchronized(x) {
   }
 #endif
+#endif
 
+#ifndef IRGENABLE_GNU
   @try {
     @throw x;
   } @catch(A *e) {
@@ -68,6 +71,7 @@ int f0(id x) {
   for (id y in x) {
     break;
   }
+#endif
 }
 
 struct s0 {