[llvm-commits] [llvm-gcc-4.2] r48614 - in /llvm-gcc-4.2/trunk/gcc/testsuite/obj-c++.dg: 5599048.mm dwarf-method-dispatch.mm encode-template.mm newproperty-protocol-type.mm newproperty-retain-3.mm newproperty-retain-4.mm objc2-ivar-offset.mm proto-bad-propagate-2.mm
Bill Wendling
isanbard at gmail.com
Thu Mar 20 14:37:07 PDT 2008
Author: void
Date: Thu Mar 20 16:37:07 2008
New Revision: 48614
URL: http://llvm.org/viewvc/llvm-project?rev=48614&view=rev
Log:
Remove redundant tests.
Modified:
llvm-gcc-4.2/trunk/gcc/testsuite/obj-c++.dg/5599048.mm
llvm-gcc-4.2/trunk/gcc/testsuite/obj-c++.dg/dwarf-method-dispatch.mm
llvm-gcc-4.2/trunk/gcc/testsuite/obj-c++.dg/encode-template.mm
llvm-gcc-4.2/trunk/gcc/testsuite/obj-c++.dg/newproperty-protocol-type.mm
llvm-gcc-4.2/trunk/gcc/testsuite/obj-c++.dg/newproperty-retain-3.mm
llvm-gcc-4.2/trunk/gcc/testsuite/obj-c++.dg/newproperty-retain-4.mm
llvm-gcc-4.2/trunk/gcc/testsuite/obj-c++.dg/objc2-ivar-offset.mm
llvm-gcc-4.2/trunk/gcc/testsuite/obj-c++.dg/proto-bad-propagate-2.mm
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/obj-c++.dg/5599048.mm
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/obj-c%2B%2B.dg/5599048.mm?rev=48614&r1=48613&r2=48614&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/obj-c++.dg/5599048.mm (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/obj-c++.dg/5599048.mm Thu Mar 20 16:37:07 2008
@@ -28,63 +28,3 @@
return 0;
}
@end
-/* APPLE LOCAL file radar 5599048 */
-/* { dg-do run { target *-*-darwin* } } */
-/* { dg-options "-O -framework Cocoa" } */
-#import <Cocoa/Cocoa.h>
-const NSPoint orig = NSMakePoint(20, 8);
-
- at interface foo:NSObject
-{
-}
- at end
-
- at implementation foo
-- (id) init
-{
- NSPoint nameorig = orig;
-
- if (nameorig.x != orig.x || nameorig.y != orig.y)
- {
- abort ();
- }
-
- return [super init];
-}
-
-int main(void)
-{
- foo *obj = [[foo alloc] init];
- return 0;
-}
- at end
-/* APPLE LOCAL file radar 5599048 */
-/* { dg-do run { target *-*-darwin* } } */
-/* { dg-options "-O -framework Cocoa" } */
-#import <Cocoa/Cocoa.h>
-const NSPoint orig = NSMakePoint(20, 8);
-
- at interface foo:NSObject
-{
-}
- at end
-
- at implementation foo
-- (id) init
-{
- NSPoint nameorig = orig;
-
- if (nameorig.x != orig.x || nameorig.y != orig.y)
- {
- abort ();
- }
-
- return [super init];
-}
-
-int main(void)
-{
- foo *obj = [[foo alloc] init];
- return 0;
-}
- at end
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/obj-c++.dg/dwarf-method-dispatch.mm
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/obj-c%2B%2B.dg/dwarf-method-dispatch.mm?rev=48614&r1=48613&r2=48614&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/obj-c++.dg/dwarf-method-dispatch.mm (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/obj-c++.dg/dwarf-method-dispatch.mm Thu Mar 20 16:37:07 2008
@@ -15,37 +15,3 @@
[pool drain];
return 0;
}
-/* APPLE LOCAL file radar 5741070 */
-/* Classes used to dispatch methods should have debug information about
- them written out, even if they are not assigned to any variable. */
-/* { dg-do compile } */
-/* { dg-options "-gdwarf-2 -O0 -dA -c" } */
-/* { dg-final { scan-assembler "\"NSBundle\\\\0\".*DW_AT_name" } } */
-
-#import <Foundation/Foundation.h>
-
-int main (int argc, const char * argv[]) {
- NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
-
- // insert code here...
- NSLog(@"Hello, World - I am %@!", [[NSBundle mainBundle] bundlePath]);
- [pool drain];
- return 0;
-}
-/* APPLE LOCAL file radar 5741070 */
-/* Classes used to dispatch methods should have debug information about
- them written out, even if they are not assigned to any variable. */
-/* { dg-do compile } */
-/* { dg-options "-gdwarf-2 -O0 -dA -c" } */
-/* { dg-final { scan-assembler "\"NSBundle\\\\0\".*DW_AT_name" } } */
-
-#import <Foundation/Foundation.h>
-
-int main (int argc, const char * argv[]) {
- NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
-
- // insert code here...
- NSLog(@"Hello, World - I am %@!", [[NSBundle mainBundle] bundlePath]);
- [pool drain];
- return 0;
-}
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/obj-c++.dg/encode-template.mm
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/obj-c%2B%2B.dg/encode-template.mm?rev=48614&r1=48613&r2=48614&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/obj-c++.dg/encode-template.mm (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/obj-c++.dg/encode-template.mm Thu Mar 20 16:37:07 2008
@@ -32,71 +32,3 @@
abort();
return 0;
}
-/* APPLE LOCAL file radar 5619052 */
-/* Test for use of template param in objective-c++'s @encode expression. */
-#include <stdlib.h>
-#include <string.h>
-/* { dg-do run } */
-
-template<typename S> const char *swap_struct(S *s)
-{
- const char *encoding = @encode(S);
- return encoding;
-}
-
-
-struct SIZE {
- char ch[124];
-} ps;
-
-struct SIZE1 {
- struct SIZE s;
- double d;
-} ps1;
-
-int *pi;
-
-int main()
-{
- if (strcmp(swap_struct(&ps), @encode(SIZE)))
- abort();
- if (strcmp(swap_struct(&ps1), @encode(SIZE1)))
- abort();
- if (strcmp(swap_struct(pi), @encode(int)))
- abort();
- return 0;
-}
-/* APPLE LOCAL file radar 5619052 */
-/* Test for use of template param in objective-c++'s @encode expression. */
-#include <stdlib.h>
-#include <string.h>
-/* { dg-do run } */
-
-template<typename S> const char *swap_struct(S *s)
-{
- const char *encoding = @encode(S);
- return encoding;
-}
-
-
-struct SIZE {
- char ch[124];
-} ps;
-
-struct SIZE1 {
- struct SIZE s;
- double d;
-} ps1;
-
-int *pi;
-
-int main()
-{
- if (strcmp(swap_struct(&ps), @encode(SIZE)))
- abort();
- if (strcmp(swap_struct(&ps1), @encode(SIZE1)))
- abort();
- if (strcmp(swap_struct(pi), @encode(int)))
- abort();
- return 0;
-}
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/obj-c++.dg/newproperty-protocol-type.mm
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/obj-c%2B%2B.dg/newproperty-protocol-type.mm?rev=48614&r1=48613&r2=48614&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/obj-c++.dg/newproperty-protocol-type.mm (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/obj-c++.dg/newproperty-protocol-type.mm Thu Mar 20 16:37:07 2008
@@ -9,28 +9,3 @@
@property id <PROTO> prop; /* { dg-warning "no 'assign', 'retain', or 'copy' attribute is specified" } */
@property Class <PROTO> prop1;
@end
-
-/* APPLE LOCAL file radar 5607453 */
-/* Test that test case does not crash when trying to issue a warning (radar 5096444) */
-/* { dg-options "-mmacosx-version-min=10.5 -fobjc-gc" } */
-/* { dg-do compile { target powerpc*-*-darwin* i?86*-*-darwin* } } */
-/* { dg-require-effective-target objc_gc } */
- at protocol PROTO @end
-
- at interface Foo
- at property id <PROTO> prop; /* { dg-warning "no 'assign', 'retain', or 'copy' attribute is specified" } */
- at property Class <PROTO> prop1;
- at end
-
-/* APPLE LOCAL file radar 5607453 */
-/* Test that test case does not crash when trying to issue a warning (radar 5096444) */
-/* { dg-options "-mmacosx-version-min=10.5 -fobjc-gc" } */
-/* { dg-do compile { target powerpc*-*-darwin* i?86*-*-darwin* } } */
-/* { dg-require-effective-target objc_gc } */
- at protocol PROTO @end
-
- at interface Foo
- at property id <PROTO> prop; /* { dg-warning "no 'assign', 'retain', or 'copy' attribute is specified" } */
- at property Class <PROTO> prop1;
- at end
-
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/obj-c++.dg/newproperty-retain-3.mm
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/obj-c%2B%2B.dg/newproperty-retain-3.mm?rev=48614&r1=48613&r2=48614&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/obj-c++.dg/newproperty-retain-3.mm (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/obj-c++.dg/newproperty-retain-3.mm Thu Mar 20 16:37:07 2008
@@ -35,77 +35,3 @@
[[Oops new] whatthe];
return 0;
}
-/* APPLE LOCAL file radar 5610134 */
-/* Test that non-fragile 'ivar' offset is generated for a 'retain'
- setter/getter API. */
-/* { dg-options "-m64 -mmacosx-version-min=10.5 -framework Cocoa" } */
-/* { dg-do run { target powerpc*-*-darwin* i?86*-*-darwin* } } */
-
-#import <Cocoa/Cocoa.h>
-
- at interface Base:NSObject
-//{ int whatever; } // uncomment this, stops crashing
- at property int whatever;
- at end
-
- at interface Oops:Base
- at property (retain) id oops;
- at end
-
- at implementation Base
- at synthesize whatever;
- at end
-
- at implementation Oops
- at synthesize oops;
-
--(void)whatthe {
- NSLog(@"1. %x",self.oops);
- self.whatever=1;
- NSLog(@"2. %x",self.oops);
-}
-
- at end
-
-int main(int ac,char **av) {
- [NSAutoreleasePool new];
- [[Oops new] whatthe];
- return 0;
-}
-/* APPLE LOCAL file radar 5610134 */
-/* Test that non-fragile 'ivar' offset is generated for a 'retain'
- setter/getter API. */
-/* { dg-options "-m64 -mmacosx-version-min=10.5 -framework Cocoa" } */
-/* { dg-do run { target powerpc*-*-darwin* i?86*-*-darwin* } } */
-
-#import <Cocoa/Cocoa.h>
-
- at interface Base:NSObject
-//{ int whatever; } // uncomment this, stops crashing
- at property int whatever;
- at end
-
- at interface Oops:Base
- at property (retain) id oops;
- at end
-
- at implementation Base
- at synthesize whatever;
- at end
-
- at implementation Oops
- at synthesize oops;
-
--(void)whatthe {
- NSLog(@"1. %x",self.oops);
- self.whatever=1;
- NSLog(@"2. %x",self.oops);
-}
-
- at end
-
-int main(int ac,char **av) {
- [NSAutoreleasePool new];
- [[Oops new] whatthe];
- return 0;
-}
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/obj-c++.dg/newproperty-retain-4.mm
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/obj-c%2B%2B.dg/newproperty-retain-4.mm?rev=48614&r1=48613&r2=48614&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/obj-c++.dg/newproperty-retain-4.mm (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/obj-c++.dg/newproperty-retain-4.mm Thu Mar 20 16:37:07 2008
@@ -38,83 +38,3 @@
[[Oops new] whatthe];
return 0;
}
-/* APPLE LOCAL file radar 5610134 */
-/* Test that non-fragile 'ivar' offset is generated for a 'retain'
- setter/getter API. */
-/* { dg-options "-mmacosx-version-min=10.5 -framework Cocoa" } */
-/* { dg-do run { target powerpc*-*-darwin* i?86*-*-darwin* } } */
-
-#import <Cocoa/Cocoa.h>
-
- at interface Base:NSObject
-{ int whatever; }
- at property int whatever;
- at end
-
- at interface Oops:Base
-{
- id oops;
-}
- at property (retain) id oops;
- at end
-
- at implementation Base
- at synthesize whatever;
- at end
-
- at implementation Oops
- at synthesize oops;
-
--(void)whatthe {
- NSLog(@"1. %x",self.oops);
- self.whatever=1;
- NSLog(@"2. %x",self.oops);
-}
-
- at end
-
-int main(int ac,char **av) {
- [NSAutoreleasePool new];
- [[Oops new] whatthe];
- return 0;
-}
-/* APPLE LOCAL file radar 5610134 */
-/* Test that non-fragile 'ivar' offset is generated for a 'retain'
- setter/getter API. */
-/* { dg-options "-mmacosx-version-min=10.5 -framework Cocoa" } */
-/* { dg-do run { target powerpc*-*-darwin* i?86*-*-darwin* } } */
-
-#import <Cocoa/Cocoa.h>
-
- at interface Base:NSObject
-{ int whatever; }
- at property int whatever;
- at end
-
- at interface Oops:Base
-{
- id oops;
-}
- at property (retain) id oops;
- at end
-
- at implementation Base
- at synthesize whatever;
- at end
-
- at implementation Oops
- at synthesize oops;
-
--(void)whatthe {
- NSLog(@"1. %x",self.oops);
- self.whatever=1;
- NSLog(@"2. %x",self.oops);
-}
-
- at end
-
-int main(int ac,char **av) {
- [NSAutoreleasePool new];
- [[Oops new] whatthe];
- return 0;
-}
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/obj-c++.dg/objc2-ivar-offset.mm
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/obj-c%2B%2B.dg/objc2-ivar-offset.mm?rev=48614&r1=48613&r2=48614&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/obj-c++.dg/objc2-ivar-offset.mm (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/obj-c++.dg/objc2-ivar-offset.mm Thu Mar 20 16:37:07 2008
@@ -37,81 +37,3 @@
return 0;
}
-/* APPLE LOCAL file 5724385 */
-/* { dg-options "-mmacosx-version-min=10.5 -m64 -lobjc" { target powerpc*-*-darwin* i?86*-*-darwin* } } */
-/* { dg-do run { target *-*-darwin* } } */
-
-#include <objc/runtime.h>
-#include <stdint.h>
-#include <stdio.h>
-
- at interface Foo {
- at private
- int first;
- int :1;
- int third :1;
- int :1;
- int fifth :1;
-}
- at end
- at implementation Foo
-+(void)initialize { }
- at end
-
-int main()
-{
- Class cls = objc_getClass("Foo");
- unsigned int count;
- Ivar *iv_list = class_copyIvarList(cls, &count);
- fprintf(stderr, "count %d\n", count);
- for (unsigned int i = 0; i < count; i++) {
- const char *ivarname = ivar_getName(iv_list[i]);
- fprintf(stderr, "ivar: %s (%p)\n", ivarname ? ivarname : "", iv_list[i]);
- const char *ivartype = ivar_getTypeEncoding(iv_list[i]);
- fprintf(stderr, "type: %s\n", ivartype);
- ptrdiff_t ivaroffset = ivar_getOffset(iv_list[i]);
- fprintf(stderr, "offset: %p\n", ivaroffset);
- fprintf(stderr, "\n");
- }
- return 0;
-}
-
-/* APPLE LOCAL file 5724385 */
-/* { dg-options "-mmacosx-version-min=10.5 -m64 -lobjc" { target powerpc*-*-darwin* i?86*-*-darwin* } } */
-/* { dg-do run { target *-*-darwin* } } */
-
-#include <objc/runtime.h>
-#include <stdint.h>
-#include <stdio.h>
-
- at interface Foo {
- at private
- int first;
- int :1;
- int third :1;
- int :1;
- int fifth :1;
-}
- at end
- at implementation Foo
-+(void)initialize { }
- at end
-
-int main()
-{
- Class cls = objc_getClass("Foo");
- unsigned int count;
- Ivar *iv_list = class_copyIvarList(cls, &count);
- fprintf(stderr, "count %d\n", count);
- for (unsigned int i = 0; i < count; i++) {
- const char *ivarname = ivar_getName(iv_list[i]);
- fprintf(stderr, "ivar: %s (%p)\n", ivarname ? ivarname : "", iv_list[i]);
- const char *ivartype = ivar_getTypeEncoding(iv_list[i]);
- fprintf(stderr, "type: %s\n", ivartype);
- ptrdiff_t ivaroffset = ivar_getOffset(iv_list[i]);
- fprintf(stderr, "offset: %p\n", ivaroffset);
- fprintf(stderr, "\n");
- }
- return 0;
-}
-
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/obj-c++.dg/proto-bad-propagate-2.mm
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/obj-c%2B%2B.dg/proto-bad-propagate-2.mm?rev=48614&r1=48613&r2=48614&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/obj-c++.dg/proto-bad-propagate-2.mm (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/obj-c++.dg/proto-bad-propagate-2.mm Thu Mar 20 16:37:07 2008
@@ -45,97 +45,3 @@
return self;
}
@end
-/* APPLE LOCAL file radar 5676962 */
-/* { dg-options "-Wall -Werror" } */
-/* { dg-do compile } */
-
-#import <Foundation/Foundation.h>
-
- at class Foo;
-
-#define FooA Foo<AProtocol>
-#define FooB Foo<BProtocol>
-
- at protocol AProtocol
-- (id) initWithState:(id)state foo:(FooA*)obj;
- at end
-
- at protocol BProtocol
-- (id) initWithState:(id)state anotherFoo:(FooB*)obj;
- at end
-
- at interface Foo : NSObject
-- (id) initWithState:(id)state;
- at end
-
- at interface Bar : FooB
-{
- FooB* myFoo;
-}
- at end
-
- at implementation Foo
-
-- (id) initWithState:(id)state
-{
- return [super init];
-}
-
- at end
-
- at implementation Bar
-
-- (id) initWithState:(id)state anotherFoo:(FooB*)obj
-{
- self = [super initWithState:state];
- myFoo = obj;
- return self;
-}
- at end
-/* APPLE LOCAL file radar 5676962 */
-/* { dg-options "-Wall -Werror" } */
-/* { dg-do compile } */
-
-#import <Foundation/Foundation.h>
-
- at class Foo;
-
-#define FooA Foo<AProtocol>
-#define FooB Foo<BProtocol>
-
- at protocol AProtocol
-- (id) initWithState:(id)state foo:(FooA*)obj;
- at end
-
- at protocol BProtocol
-- (id) initWithState:(id)state anotherFoo:(FooB*)obj;
- at end
-
- at interface Foo : NSObject
-- (id) initWithState:(id)state;
- at end
-
- at interface Bar : FooB
-{
- FooB* myFoo;
-}
- at end
-
- at implementation Foo
-
-- (id) initWithState:(id)state
-{
- return [super init];
-}
-
- at end
-
- at implementation Bar
-
-- (id) initWithState:(id)state anotherFoo:(FooB*)obj
-{
- self = [super initWithState:state];
- myFoo = obj;
- return self;
-}
- at end
More information about the llvm-commits
mailing list