Remove obsolete or migrated tests.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@138173 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Eric Christopher 2011-08-20 00:38:20 +00:00
parent 89a67a4d5e
commit f909c6692a
9 changed files with 0 additions and 206 deletions

View File

@ -1,29 +0,0 @@
// RUN: %llvmgcc -S %s -o /dev/null
@interface B
-(int)bar;
@end
@interface A
-(void) Foo:(int) state;
@end
@implementation A
- (void) Foo:(int) state {
int wasResponded = 0;
@try {
if (state) {
B * b = 0;
@try { }
@finally {
wasResponded = ![b bar];
}
}
}
@finally {
}
}
@end

View File

@ -1,23 +0,0 @@
// RUN: %llvmgcc -S %s -fobjc-gc -o /dev/null
typedef int NSInteger;
typedef struct _NSRect {
int origin;
int size;
} NSRect;
__attribute__((objc_gc(strong))) NSRect *_cachedRectArray;
extern const NSRect NSZeroRect;
@interface A{
}
-(void)bar:(NSInteger *)rectCount;
@end
@implementation A
-(void)bar:(NSInteger *)rectCount {
NSRect appendRect = NSZeroRect;
_cachedRectArray[*rectCount - 1] = NSZeroRect;
}
@end

View File

@ -1,27 +0,0 @@
// RUN: %llvmgcc -S -w -m64 -mmacosx-version-min=10.5 %s -o /dev/null
// XFAIL: *
// XTARGET: darwin
@class NSDictionary, DSoBuffer, DSoDirectory, NSMutableArray;
@interface NSException {}
@end
@interface DSoNode {
DSoDirectory *mDirectory;
}
@end
@implementation DSoNode
- (void) _findRecordsOfTypes {
DSoBuffer *dbData;
void *recInfo;
NSMutableArray *results;
@try {
dsGetRecordEntry([dbData dsDataBuffer], (void**)&recInfo);
@try {
[results addObject:37];
} @finally {
dsDeallocRecordEntry([mDirectory dsDirRef], recInfo);
}
} @catch(NSException * exception) {
}
}

View File

@ -1,24 +0,0 @@
// RUN: %llvmgcc -m32 -x objective-c %s -pipe -std=gnu99 -O2 -fexceptions -S -o - | not grep Unwind_Resume
#import <stdio.h>
@interface Foo {
char c;
short s;
int i;
long l;
float f;
double d;
}
-(Foo*)retain;
@end
struct Foo *bork(Foo *FooArray) {
struct Foo *result = 0;
@try {
result = [FooArray retain];
} @catch(id any) {
printf("hello world\n");
}
return result;
}

View File

@ -1,19 +0,0 @@
// RUN: %llvmgcc -x objective-c -S %s -o /dev/null
@protocol O
@end
@interface O < O > {
}
@end
struct A {
};
@protocol AB
- (unsigned) ver;
@end
@interface AGy:O < AB > {
}
@end
@implementation AGy
- (unsigned) ver {
}
@end

View File

@ -1,9 +0,0 @@
// RUN: %llvmgcc -x objective-c -S %s -o /dev/null -fobjc-gc
// rdar://5541393
typedef unsigned int NSUInteger;
__attribute__((objc_gc(strong))) float *_scores;
void foo(int i, float f) {
_scores[i] = f;
}

View File

@ -1,50 +0,0 @@
// RUN: %llvmgcc -w -x objective-c -S %s -o /dev/null
@interface Object {
@public
Class isa;
}
+initialize;
+alloc;
+new;
+free;
-free;
+(Class)class;
-(Class)class;
-init;
-superclass;
-(const char *)name;
@end
@interface Frob: Object
@end
@implementation Frob: Object
@end
static Frob* _connection = ((void *)0);
extern void abort(void);
void test (Object* sendPort)
{
int cleanupPorts = 1;
Frob* receivePort = ((void *)0);
@try {
receivePort = (Frob *) -1;
_connection = (Frob *) -1;
receivePort = ((void *)0);
sendPort = ((void *)0);
cleanupPorts = 0;
@throw [Object new];
}
@catch(Frob *obj) {
if(!(0)) abort();
}
@catch(id exc) {
if(!(!receivePort)) abort();
if(!(!sendPort)) abort();
if(!(!cleanupPorts)) abort();
}
}

View File

@ -1,14 +0,0 @@
// RUN: %llvmgcc -x objective-c -m64 -S %s -o /dev/null
@interface A
@end
@protocol P
@end
@interface B : A <P>
{
}
@end
@implementation B
- (void)test {
}
@end

View File

@ -1,11 +0,0 @@
// RUN: %llvmgcc -x objective-c -m64 -S %s -o - | grep {L_unnamed_cfstring_}
@class NSString;
@interface A
- (void)bork:(NSString*)msg;
@end
void func(A *a) {
[a bork:@"Hello world!"];
}