diff options
author | Dan Albert <danalbert@google.com> | 2015-10-13 16:28:19 -0700 |
---|---|---|
committer | Dan Albert <danalbert@google.com> | 2015-10-13 16:28:19 -0700 |
commit | a8c075f72b231c37823661ba0d7d082a21cd39d9 (patch) | |
tree | 395aa3b848d56037292e50466643453485073018 /gcc-4.8/gcc/testsuite/objc.dg/proto-lossage-1.m | |
parent | 5aff2e0142aca13849b4e51de503e71d5010efa6 (diff) | |
download | toolchain_gcc-a8c075f72b231c37823661ba0d7d082a21cd39d9.tar.gz toolchain_gcc-a8c075f72b231c37823661ba0d7d082a21cd39d9.tar.bz2 toolchain_gcc-a8c075f72b231c37823661ba0d7d082a21cd39d9.zip |
Remove gcc-4.8.
Change-Id: Iee9c6985c613f58c82e33a91722d371579eb290f
Diffstat (limited to 'gcc-4.8/gcc/testsuite/objc.dg/proto-lossage-1.m')
-rw-r--r-- | gcc-4.8/gcc/testsuite/objc.dg/proto-lossage-1.m | 44 |
1 files changed, 0 insertions, 44 deletions
diff --git a/gcc-4.8/gcc/testsuite/objc.dg/proto-lossage-1.m b/gcc-4.8/gcc/testsuite/objc.dg/proto-lossage-1.m deleted file mode 100644 index 2f7eb9861..000000000 --- a/gcc-4.8/gcc/testsuite/objc.dg/proto-lossage-1.m +++ /dev/null @@ -1,44 +0,0 @@ -/* Test for situations in which protocol conformance information - may be lost, leading to superfluous warnings. */ -/* Author: Ziemowit Laski <zlaski@apple.com>. */ -/* { dg-do compile } */ - -/* One-line substitute for objc/objc.h */ -typedef struct objc_object { struct objc_class *class_pointer; } *id; - -@protocol NSObject -- (int)someValue; -@end - -@interface NSObject <NSObject> -@end - -@protocol PlateMethods -- (void)someMethod; -@end - -@interface Foo { - NSObject <PlateMethods> *plate; - id <PlateMethods> plate1; - NSObject *plate2; -} -- (id <PlateMethods>) getPlate; -- (id <NSObject>) getPlate1; -- (int) getValue; -@end - -@implementation Foo -- (id <PlateMethods>) getPlate { - return plate; /* { dg-bogus "does not implement" } */ -} -- (id <NSObject>) getPlate1 { - return (id <NSObject>)plate1; /* { dg-bogus "does not conform" } */ -} -- (int) getValue { - int i = [plate1 someValue]; /* { dg-warning ".\\-someValue. not found in protocol\\(s\\)" } */ - - int j = [(id <NSObject>)plate1 someValue]; /* { dg-bogus "not found in protocol" } */ - int k = [(id)plate1 someValue]; /* { dg-bogus "not found in protocol" } */ - return i + j + k; -} -@end |