[cfe-commits] r58084 - in /cfe/trunk/test/Coverage: codegen-gnu.m objc-language-features.inc

Daniel Dunbar daniel at zuster.org
Fri Oct 24 01:42:52 PDT 2008


Author: ddunbar
Date: Fri Oct 24 03:42:52 2008
New Revision: 58084

URL: http://llvm.org/viewvc/llvm-project?rev=58084&view=rev
Log:
Use #define trickery to de-XFAIL test/Coverage/codegen-gnu.m while
still getting coverage for non-IRgen cases.

Modified:
    cfe/trunk/test/Coverage/codegen-gnu.m
    cfe/trunk/test/Coverage/objc-language-features.inc

Modified: cfe/trunk/test/Coverage/codegen-gnu.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Coverage/codegen-gnu.m?rev=58084&r1=58083&r2=58084&view=diff

==============================================================================
--- cfe/trunk/test/Coverage/codegen-gnu.m (original)
+++ cfe/trunk/test/Coverage/codegen-gnu.m Fri Oct 24 03:42:52 2008
@@ -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"

Modified: cfe/trunk/test/Coverage/objc-language-features.inc
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Coverage/objc-language-features.inc?rev=58084&r1=58083&r2=58084&view=diff

==============================================================================
--- cfe/trunk/test/Coverage/objc-language-features.inc (original)
+++ cfe/trunk/test/Coverage/objc-language-features.inc Fri Oct 24 03:42:52 2008
@@ -52,11 +52,14 @@
 @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 @@
   for (id y in x) {
     break;
   }
+#endif
 }
 
 struct s0 {





More information about the cfe-commits mailing list