Remove obsolete or migrated tests.
authorEric Christopher <echristo@apple.com>
Sat, 20 Aug 2011 00:38:20 +0000 (00:38 +0000)
committerEric Christopher <echristo@apple.com>
Sat, 20 Aug 2011 00:38:20 +0000 (00:38 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@138173 91177308-0d34-0410-b5e6-96231b3b80d8

test/FrontendObjC/2007-04-03-ObjcEH.m [deleted file]
test/FrontendObjC/2007-05-02-Strong.m [deleted file]
test/FrontendObjC/2007-09-25-EH.m [deleted file]
test/FrontendObjC/2007-10-17-SJLJExceptions.m [deleted file]
test/FrontendObjC/2007-10-18-ProDescriptor.m [deleted file]
test/FrontendObjC/2007-10-23-GC-WriteBarrier.m [deleted file]
test/FrontendObjC/2008-10-3-EhValue.m [deleted file]
test/FrontendObjC/2008-11-12-Metadata.m [deleted file]
test/FrontendObjC/2008-11-24-ConstCFStrings.m [deleted file]

diff --git a/test/FrontendObjC/2007-04-03-ObjcEH.m b/test/FrontendObjC/2007-04-03-ObjcEH.m
deleted file mode 100644 (file)
index ae744c7..0000000
+++ /dev/null
@@ -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
-
-
diff --git a/test/FrontendObjC/2007-05-02-Strong.m b/test/FrontendObjC/2007-05-02-Strong.m
deleted file mode 100644 (file)
index 34b41ad..0000000
+++ /dev/null
@@ -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
diff --git a/test/FrontendObjC/2007-09-25-EH.m b/test/FrontendObjC/2007-09-25-EH.m
deleted file mode 100644 (file)
index d625584..0000000
+++ /dev/null
@@ -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) {
-  }
-}
-
-
diff --git a/test/FrontendObjC/2007-10-17-SJLJExceptions.m b/test/FrontendObjC/2007-10-17-SJLJExceptions.m
deleted file mode 100644 (file)
index 970207e..0000000
+++ /dev/null
@@ -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;
-}
diff --git a/test/FrontendObjC/2007-10-18-ProDescriptor.m b/test/FrontendObjC/2007-10-18-ProDescriptor.m
deleted file mode 100644 (file)
index 220fdd2..0000000
+++ /dev/null
@@ -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
-
diff --git a/test/FrontendObjC/2007-10-23-GC-WriteBarrier.m b/test/FrontendObjC/2007-10-23-GC-WriteBarrier.m
deleted file mode 100644 (file)
index 4bbe440..0000000
+++ /dev/null
@@ -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; 
-}
diff --git a/test/FrontendObjC/2008-10-3-EhValue.m b/test/FrontendObjC/2008-10-3-EhValue.m
deleted file mode 100644 (file)
index c7aabe2..0000000
+++ /dev/null
@@ -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();
- }
-}
diff --git a/test/FrontendObjC/2008-11-12-Metadata.m b/test/FrontendObjC/2008-11-12-Metadata.m
deleted file mode 100644 (file)
index be8ee41..0000000
+++ /dev/null
@@ -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
diff --git a/test/FrontendObjC/2008-11-24-ConstCFStrings.m b/test/FrontendObjC/2008-11-24-ConstCFStrings.m
deleted file mode 100644 (file)
index 976adc4..0000000
+++ /dev/null
@@ -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!"];
-}