[llvm-commits] [llvm-gcc-4.2] r48613 - in /llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg: dwarf-method-dispatch.m method-21.m newproperty-protocol-type.m newproperty-retain-3.m newproperty-retain-4.m objc2-ivar-layout-bitfield.m objc2-ivar-layout-empty-struct.m objc2-ivar-offset.m objc2-no-category-name.m optional-property.m property-warn-default-assign.m proto-bad-propagate-2.m
Bill Wendling
isanbard at gmail.com
Thu Mar 20 14:33:10 PDT 2008
Author: void
Date: Thu Mar 20 16:33:10 2008
New Revision: 48613
URL: http://llvm.org/viewvc/llvm-project?rev=48613&view=rev
Log:
Remove redundant tests.
Modified:
llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/dwarf-method-dispatch.m
llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/method-21.m
llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/newproperty-protocol-type.m
llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/newproperty-retain-3.m
llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/newproperty-retain-4.m
llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/objc2-ivar-layout-bitfield.m
llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/objc2-ivar-layout-empty-struct.m
llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/objc2-ivar-offset.m
llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/objc2-no-category-name.m
llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/optional-property.m
llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/property-warn-default-assign.m
llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/proto-bad-propagate-2.m
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/dwarf-method-dispatch.m
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/dwarf-method-dispatch.m?rev=48613&r1=48612&r2=48613&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/dwarf-method-dispatch.m (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/dwarf-method-dispatch.m Thu Mar 20 16:33:10 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/objc.dg/method-21.m
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/method-21.m?rev=48613&r1=48612&r2=48613&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/method-21.m (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/method-21.m Thu Mar 20 16:33:10 2008
@@ -33,73 +33,3 @@
[foo doSomething:5];
}
-/* APPLE LOCAL file radar 5370783 */
-/* Test that if a method defined in the class does not match in a reasonable way to a declaration
- in its super class, then issue a warning. */
-/* { dg-do compile } */
-
-#include <Foundation/Foundation.h>
-
- at interface Foo : NSObject
-- (void) doSomething: (float) x; /* { dg-warning "previous declaration of" } */
- at end
-
- at implementation Foo
-- (void) doSomething: (float) x
-{
- printf("Foo::doSomething (%f)\n", x);
-}
- at end
-
- at interface Bar : Foo
- at end
-
- at implementation Bar
-- (void) doSomething: (int) x
-{ /* { dg-warning "conflicting types for" } */
- printf("Bar::doSomething (%d)\n", x);
-}
- at end
-
-int main()
-{
- Bar *x = [[Bar alloc] init];
- Foo *foo = x;
- [foo doSomething:5];
-}
-
-/* APPLE LOCAL file radar 5370783 */
-/* Test that if a method defined in the class does not match in a reasonable way to a declaration
- in its super class, then issue a warning. */
-/* { dg-do compile } */
-
-#include <Foundation/Foundation.h>
-
- at interface Foo : NSObject
-- (void) doSomething: (float) x; /* { dg-warning "previous declaration of" } */
- at end
-
- at implementation Foo
-- (void) doSomething: (float) x
-{
- printf("Foo::doSomething (%f)\n", x);
-}
- at end
-
- at interface Bar : Foo
- at end
-
- at implementation Bar
-- (void) doSomething: (int) x
-{ /* { dg-warning "conflicting types for" } */
- printf("Bar::doSomething (%d)\n", x);
-}
- at end
-
-int main()
-{
- Bar *x = [[Bar alloc] init];
- Foo *foo = x;
- [foo doSomething:5];
-}
-
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/newproperty-protocol-type.m
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/newproperty-protocol-type.m?rev=48613&r1=48612&r2=48613&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/newproperty-protocol-type.m (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/newproperty-protocol-type.m Thu Mar 20 16:33:10 2008
@@ -10,27 +10,3 @@
@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/objc.dg/newproperty-retain-3.m
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/newproperty-retain-3.m?rev=48613&r1=48612&r2=48613&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/newproperty-retain-3.m (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/newproperty-retain-3.m Thu Mar 20 16:33:10 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/objc.dg/newproperty-retain-4.m
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/newproperty-retain-4.m?rev=48613&r1=48612&r2=48613&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/newproperty-retain-4.m (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/newproperty-retain-4.m Thu Mar 20 16:33:10 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/objc.dg/objc2-ivar-layout-bitfield.m
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/objc2-ivar-layout-bitfield.m?rev=48613&r1=48612&r2=48613&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/objc2-ivar-layout-bitfield.m (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/objc2-ivar-layout-bitfield.m Thu Mar 20 16:33:10 2008
@@ -37,81 +37,3 @@
return 0;
}
-/* APPLE LOCAL file radar 5781140 */
-/* Check for correct outputing of ivar layout when last fields are bitfields. */
-/* { dg-do run { target powerpc*-*-darwin* i?86*-*-darwin* } } */
-/* { dg-options "-mmacosx-version-min=10.5 -framework Foundation -fobjc-gc" } */
-/* { dg-require-effective-target objc_gc } */
-
-#import <Foundation/Foundation.h>
-#import <objc/runtime.h>
-
- at interface Foo : NSObject {
- id ivar;
-
- uintptr_t bitfield :31;
- uintptr_t bitfield2 :1;
-#if __LP64__
- uintptr_t bitfield3 :32;
-#endif
-}
- at end
-
- at implementation Foo @end
-
-int main()
-{
- if (!objc_collecting_enabled()) {
- abort ();
- }
- size_t size = class_getInstanceSize([Foo class]);
- if (size != 3*sizeof(void*)) {
- abort ();
- }
- const char *layout = class_getIvarLayout([Foo class]);
- // Desired layout: skip 0, scan 2 (isa, ivar); skip 1 (bitfield), scan 0.
- if (!layout || 0 != strcmp(layout, "\x02\x10")) {
- abort ();
- }
- return 0;
-}
-
-/* APPLE LOCAL file radar 5781140 */
-/* Check for correct outputing of ivar layout when last fields are bitfields. */
-/* { dg-do run { target powerpc*-*-darwin* i?86*-*-darwin* } } */
-/* { dg-options "-mmacosx-version-min=10.5 -framework Foundation -fobjc-gc" } */
-/* { dg-require-effective-target objc_gc } */
-
-#import <Foundation/Foundation.h>
-#import <objc/runtime.h>
-
- at interface Foo : NSObject {
- id ivar;
-
- uintptr_t bitfield :31;
- uintptr_t bitfield2 :1;
-#if __LP64__
- uintptr_t bitfield3 :32;
-#endif
-}
- at end
-
- at implementation Foo @end
-
-int main()
-{
- if (!objc_collecting_enabled()) {
- abort ();
- }
- size_t size = class_getInstanceSize([Foo class]);
- if (size != 3*sizeof(void*)) {
- abort ();
- }
- const char *layout = class_getIvarLayout([Foo class]);
- // Desired layout: skip 0, scan 2 (isa, ivar); skip 1 (bitfield), scan 0.
- if (!layout || 0 != strcmp(layout, "\x02\x10")) {
- abort ();
- }
- return 0;
-}
-
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/objc2-ivar-layout-empty-struct.m
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/objc2-ivar-layout-empty-struct.m?rev=48613&r1=48612&r2=48613&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/objc2-ivar-layout-empty-struct.m (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/objc2-ivar-layout-empty-struct.m Thu Mar 20 16:33:10 2008
@@ -72,4 +72,3 @@
abort ();
return 0;
}
-
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/objc2-ivar-offset.m
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/objc2-ivar-offset.m?rev=48613&r1=48612&r2=48613&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/objc2-ivar-offset.m (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/objc2-ivar-offset.m Thu Mar 20 16:33:10 2008
@@ -37,81 +37,3 @@
return 0;
}
-/* APPLE LOCAL file 5724385 */
-/* { dg-options "-std=c99 -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 "-std=c99 -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/objc.dg/objc2-no-category-name.m
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/objc2-no-category-name.m?rev=48613&r1=48612&r2=48613&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/objc2-no-category-name.m (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/objc2-no-category-name.m Thu Mar 20 16:33:10 2008
@@ -12,31 +12,3 @@
@implementation Foo (stuff)
@end
/* { dg-final { scan-assembler-not ".objc_category_name" } } */
-/* APPLE LOCAL file 5774213 */
-/* We must not generate global symbol for category names in the ObjC2 ABI. */
-/* { dg-options "-mmacosx-version-min=10.5 -m64" } */
-/* { dg-do compile { target *-*-darwin* } } */
-
- at interface Foo
- at end
-
- at interface Foo (stuff)
- at end
-
- at implementation Foo (stuff)
- at end
-/* { dg-final { scan-assembler-not ".objc_category_name" } } */
-/* APPLE LOCAL file 5774213 */
-/* We must not generate global symbol for category names in the ObjC2 ABI. */
-/* { dg-options "-mmacosx-version-min=10.5 -m64" } */
-/* { dg-do compile { target *-*-darwin* } } */
-
- at interface Foo
- at end
-
- at interface Foo (stuff)
- at end
-
- at implementation Foo (stuff)
- at end
-/* { dg-final { scan-assembler-not ".objc_category_name" } } */
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/optional-property.m
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/optional-property.m?rev=48613&r1=48612&r2=48613&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/optional-property.m (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/optional-property.m Thu Mar 20 16:33:10 2008
@@ -41,89 +41,3 @@
return 0;
}
-/* APPLE LOCAL file radar 5777307 */
-/* This program tests that when a property is @optional, with @synthesize, we still synthesize
- setter/getters. Program should compile and run with no errors. */
-/* { dg-options "-mmacosx-version-min=10.5 -framework Foundation" } */
-/* { dg-do run { target *-*-darwin* } } */
-
-#import <Cocoa/Cocoa.h>
-
-
- at interface BaseClass : NSObject {
- id _delegate;
-}
- at end
-
- at protocol MyProtocol<NSObject>
- at optional
- at property(assign) id delegate;
- at end
-
- at interface SubClass : BaseClass <MyProtocol> {
-
-}
-
- at end
-
- at implementation BaseClass @end
-
- at implementation SubClass
- at synthesize delegate = _delegate;
- at end
-
-int main (int argc, const char * argv[]) {
- NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
-
- id<MyProtocol> sc = [SubClass new];
- id o = [NSObject new];
-
- [sc setDelegate:o];
-
- [pool drain];
- return 0;
-}
-
-/* APPLE LOCAL file radar 5777307 */
-/* This program tests that when a property is @optional, with @synthesize, we still synthesize
- setter/getters. Program should compile and run with no errors. */
-/* { dg-options "-mmacosx-version-min=10.5 -framework Foundation" } */
-/* { dg-do run { target *-*-darwin* } } */
-
-#import <Cocoa/Cocoa.h>
-
-
- at interface BaseClass : NSObject {
- id _delegate;
-}
- at end
-
- at protocol MyProtocol<NSObject>
- at optional
- at property(assign) id delegate;
- at end
-
- at interface SubClass : BaseClass <MyProtocol> {
-
-}
-
- at end
-
- at implementation BaseClass @end
-
- at implementation SubClass
- at synthesize delegate = _delegate;
- at end
-
-int main (int argc, const char * argv[]) {
- NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
-
- id<MyProtocol> sc = [SubClass new];
- id o = [NSObject new];
-
- [sc setDelegate:o];
-
- [pool drain];
- return 0;
-}
-
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/property-warn-default-assign.m
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/property-warn-default-assign.m?rev=48613&r1=48612&r2=48613&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/property-warn-default-assign.m (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/property-warn-default-assign.m Thu Mar 20 16:33:10 2008
@@ -10,27 +10,3 @@
/* { dg-warning "default 'assign' attribute" "" { target *-*-* } 9 } */
@end
-/* APPLE LOCAL file radar 5698469 */
-/* Check that warning includes use of word 'default' on missing assign attribute. */
-/* { dg-options "-fobjc-gc -mmacosx-version-min=10.5" } */
-/* { dg-do compile { target *-*-darwin* } } */
-
-#include <Foundation/Foundation.h>
-
- at interface INTF
- at property NSDictionary* undoAction; /* { dg-warning "no 'assign', 'retain'" } */
- /* { dg-warning "default 'assign' attribute" "" { target *-*-* } 9 } */
- at end
-
-/* APPLE LOCAL file radar 5698469 */
-/* Check that warning includes use of word 'default' on missing assign attribute. */
-/* { dg-options "-fobjc-gc -mmacosx-version-min=10.5" } */
-/* { dg-do compile { target *-*-darwin* } } */
-
-#include <Foundation/Foundation.h>
-
- at interface INTF
- at property NSDictionary* undoAction; /* { dg-warning "no 'assign', 'retain'" } */
- /* { dg-warning "default 'assign' attribute" "" { target *-*-* } 9 } */
- at end
-
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/proto-bad-propagate-2.m
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/proto-bad-propagate-2.m?rev=48613&r1=48612&r2=48613&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/proto-bad-propagate-2.m (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/proto-bad-propagate-2.m Thu Mar 20 16:33:10 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