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/method-conflict-2.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/method-conflict-2.m')
-rw-r--r-- | gcc-4.8/gcc/testsuite/objc.dg/method-conflict-2.m | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/gcc-4.8/gcc/testsuite/objc.dg/method-conflict-2.m b/gcc-4.8/gcc/testsuite/objc.dg/method-conflict-2.m deleted file mode 100644 index 0b0612d77..000000000 --- a/gcc-4.8/gcc/testsuite/objc.dg/method-conflict-2.m +++ /dev/null @@ -1,34 +0,0 @@ -/* Contributed by Nicola Pero <nicola.pero@meta-innovation.com>, December 2010. */ -/* { dg-do compile } */ - -#include <objc/objc.h> - -/* Test that you can not declare two methods, in the same protocol, - with the same name and method signature, but one as @required and - once as @optional. */ - -/* First, @required conflicting with @optional. */ -@protocol MyProtocol - -@optional -+ (void) method1: (id)x; /* { dg-message "previous declaration" } */ -- (id) method2: (long)x; /* { dg-message "previous declaration" } */ - -@required -+ (void) method1: (id)x; /* { dg-error "declared .@optional. and .@required. at the same time" } */ -- (id) method2: (long)x; /* { dg-error "declared .@optional. and .@required. at the same time" } */ - -@end - -/* Second, @optional conflicting with @required. */ -@protocol MyProtocol2 - -@required -+ (void) method3: (Class)x; /* { dg-message "previous declaration" } */ -- (id *) method4: (long)x; /* { dg-message "previous declaration" } */ - -@optional -+ (void) method3: (Class)x; /* { dg-error "declared .@optional. and .@required. at the same time" } */ -- (id *) method4: (long)x; /* { dg-error "declared .@optional. and .@required. at the same time" } */ - -@end |