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

Unified Diff: gcc/gcc/testsuite/obj-c++.dg/const-str-7.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/const-str-11.mm ('k') | gcc/gcc/testsuite/obj-c++.dg/cxx-class-1.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/const-str-7.mm
diff --git a/gcc/gcc/testsuite/obj-c++.dg/const-str-7.mm b/gcc/gcc/testsuite/obj-c++.dg/const-str-7.mm
index 3691579381d3a931b3697862998782ab77bc1cd5..755b0452be20a3cefe2678f67191825c91ccef04 100644
--- a/gcc/gcc/testsuite/obj-c++.dg/const-str-7.mm
+++ b/gcc/gcc/testsuite/obj-c++.dg/const-str-7.mm
@@ -2,17 +2,16 @@
scopes. */
/* Developed by Andrew Pinski <pinskia@physics.uc.edu> */
+/* { dg-options "-fconstant-string-class=Foo" } */
+/* { dg-do run } */
+/* { dg-xfail-run-if "Needs OBJC2 ABI" { *-*-darwin* && { lp64 && { ! objc2 } } } { "-fnext-runtime" } { "" } } */
-/* { dg-options "-fnext-runtime -fconstant-string-class=Foo -lobjc" } */
-/* { dg-do run { target *-*-darwin* } } */
-
-
+#include "../objc-obj-c++-shared/Object1.h"
+#include "../objc-obj-c++-shared/next-mapping.h"
#include <stdio.h>
#include <stdlib.h>
#include <memory.h>
#include <objc/objc.h>
-#include <objc/Object.h>
-
@interface Foo: Object {
char *cString;
@@ -21,8 +20,11 @@
- (char *)customString;
@end
+#ifdef NEXT_OBJC_USE_NEW_INTERFACE
+struct fudge_objc_class _FooClassReference;
+#else
struct objc_class _FooClassReference;
-
+#endif
@implementation Foo : Object
- (char *)customString {
@@ -36,11 +38,10 @@ int main () {
{
Foo *string2 = @"bla";
-
if(string != string2)
abort();
printf("Strings are being uniqued properly\n");
}
return 0;
}
-
+#include "../objc-obj-c++-shared/Object1-implementation.h"
« no previous file with comments | « gcc/gcc/testsuite/obj-c++.dg/const-str-11.mm ('k') | gcc/gcc/testsuite/obj-c++.dg/cxx-class-1.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698