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

Unified Diff: gcc/gcc/testsuite/obj-c++.dg/method-19.mm

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/obj-c++.dg/method-15.mm ('k') | gcc/gcc/testsuite/obj-c++.dg/method-6.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gcc/gcc/testsuite/obj-c++.dg/method-19.mm
diff --git a/gcc/gcc/testsuite/obj-c++.dg/method-19.mm b/gcc/gcc/testsuite/obj-c++.dg/method-19.mm
index e7a2b44fd7a0c6a609f413b409defaf1679387d3..5dca80494ceb02ea9aa2ed5231bb7347977e345b 100644
--- a/gcc/gcc/testsuite/obj-c++.dg/method-19.mm
+++ b/gcc/gcc/testsuite/obj-c++.dg/method-19.mm
@@ -3,15 +3,12 @@
root classes must be considered. */
/* Author: Ziemowit Laski <zlaski@apple.com>. */
/* { dg-do run } */
-
+/* { dg-xfail-run-if "Needs OBJC2 ABI" { *-*-darwin* && { lp64 && { ! objc2 } } } { "-fnext-runtime" } { "" } } */
+#include "../objc-obj-c++-shared/next-mapping.h"
#include <objc/objc.h>
-#ifdef __NEXT_RUNTIME__
-#include <objc/objc-runtime.h>
-#define OBJC_GETCLASS objc_getClass
-#else
+#ifndef __NEXT_RUNTIME__
#include <objc/objc-api.h>
-#define OBJC_GETCLASS objc_get_class
#endif
#include <stdlib.h>
@@ -59,7 +56,7 @@
int main(void)
{
- Class obj = OBJC_GETCLASS("Derived");
+ Class obj = objc_get_class("Derived");
/* None of the following should elicit compiler-time warnings. */
@@ -78,3 +75,4 @@ int main(void)
return 0;
}
+#include "../objc-obj-c++-shared/Object1-implementation.h"
« no previous file with comments | « gcc/gcc/testsuite/obj-c++.dg/method-15.mm ('k') | gcc/gcc/testsuite/obj-c++.dg/method-6.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698