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

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

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

index 74df555d1084be653d8379b4f29d166ad8817084..1a3f05049ffc245eb889e9250d8390cea32d2542 100644 (file)
@@ -1,5 +1,7 @@
-// RUN: clang -fnext-runtime -emit-llvm -o %t %s &&
-// RUN: clang -g -fnext-runtime -emit-llvm -o %t %s
-// XFAIL
+// RUN: clang -DIRGENABLE -fnext-runtime -emit-llvm -o %t %s &&
+// RUN: clang -DIRGENABLE -g -fnext-runtime -emit-llvm -o %t %s &&
+
+// FIXME: Remove IRGENABLE when possible.
+// RUN: ! clang -fnext-runtime -emit-llvm -o %t %s
 
 #include "objc-language-features.inc"
index e060d032ce673ca25346f8e532738a82f8fbabae..0e6237e012523ca05f017fbdb8d10d87dd5b9022 100644 (file)
   [super fm0];
 }
 -(void) im0 {
-  char *s0 = __func__;
-  char *s1 = __FUNCTION__;
-  char *s2 = __PRETTY_FUNCTION__;
+  const char *s0 = __func__;
+  const char *s1 = __FUNCTION__;
+  const char *s2 = __PRETTY_FUNCTION__;
   [super im0];
+#ifndef IRGENABLE
   int x = super.p0;
+#endif
 }
 -(void) im1: (int) x, ... {
 }
 @end
 
 int f0(id x) {
+#ifndef IRGENABLE
   @synchronized(x) {
   }
+#endif
 
   @try {
     @throw x;