Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(460)

Unified Diff: gcc/gcc/testsuite/objc/execute/protocol-isEqual-1.m

Issue 3050029: [gcc] GCC 4.5.0=>4.5.1 (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/nacl-toolchain.git
Patch Set: Created 10 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « gcc/gcc/testsuite/objc/execute/private.m ('k') | gcc/gcc/testsuite/objc/execute/string2.m » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gcc/gcc/testsuite/objc/execute/protocol-isEqual-1.m
diff --git a/gcc/gcc/testsuite/objc/execute/protocol-isEqual-1.m b/gcc/gcc/testsuite/objc/execute/protocol-isEqual-1.m
index df1382d3395a1b2960c53f99aa62d39e8a6601a1..29b5c3ded78685151916bcb6c5aaf3354ebbb3be 100644
--- a/gcc/gcc/testsuite/objc/execute/protocol-isEqual-1.m
+++ b/gcc/gcc/testsuite/objc/execute/protocol-isEqual-1.m
@@ -1,6 +1,6 @@
/* Contributed by Nicola Pero - Fri Jun 4 03:16:17 BST 2004 */
/* Test that a protocol is equal to itself. */
-#include <objc/Protocol.h>
+#include "../../objc-obj-c++-shared/Protocol1.h"
@protocol Foo
- (void)foo;
@@ -10,7 +10,11 @@ int main (void)
{
Protocol *protocol = @protocol(Foo);
+#ifdef NEXT_OBJC_USE_NEW_INTERFACE
+ if ( !protocol_isEqual (protocol, protocol))
+#else
if (! [protocol isEqual: protocol])
+#endif
{
abort ();
}
« no previous file with comments | « gcc/gcc/testsuite/objc/execute/private.m ('k') | gcc/gcc/testsuite/objc/execute/string2.m » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698