[cfe-commits] r58082 - in /cfe/trunk/test/Coverage: codegen-next.m objc-language-features.inc
Daniel Dunbar
daniel at zuster.org
Fri Oct 24 01:39:46 PDT 2008
Author: ddunbar
Date: Fri Oct 24 03:39:46 2008
New Revision: 58082
URL: http://llvm.org/viewvc/llvm-project?rev=58082&view=rev
Log:
Use #define trickery to de-XFAIL test/Coverage/codegen-next.m while
still getting coverage for non-IRgen cases.
Modified:
cfe/trunk/test/Coverage/codegen-next.m
cfe/trunk/test/Coverage/objc-language-features.inc
Modified: cfe/trunk/test/Coverage/codegen-next.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Coverage/codegen-next.m?rev=58082&r1=58081&r2=58082&view=diff
==============================================================================
--- cfe/trunk/test/Coverage/codegen-next.m (original)
+++ cfe/trunk/test/Coverage/codegen-next.m Fri Oct 24 03:39:46 2008
@@ -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"
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=58082&r1=58081&r2=58082&view=diff
==============================================================================
--- cfe/trunk/test/Coverage/objc-language-features.inc (original)
+++ cfe/trunk/test/Coverage/objc-language-features.inc Fri Oct 24 03:39:46 2008
@@ -30,11 +30,13 @@
[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, ... {
}
@@ -50,8 +52,10 @@
@end
int f0(id x) {
+#ifndef IRGENABLE
@synchronized(x) {
}
+#endif
@try {
@throw x;
More information about the cfe-commits
mailing list