Use #define trickery to de-XFAIL test/Coverage/codegen-next.m while

still getting coverage for non-IRgen cases.

llvm-svn: 58082
This commit is contained in:
Daniel Dunbar 2008-10-24 08:39:46 +00:00
parent dec8a89d37
commit 15fadeb9cf
2 changed files with 12 additions and 6 deletions

View 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"

View File

@ -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;