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

Unified Diff: gcc/gcc/testsuite/objc.dg/const-str-10.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.dg/const-str-1.m ('k') | gcc/gcc/testsuite/objc.dg/const-str-7.m » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gcc/gcc/testsuite/objc.dg/const-str-10.m
diff --git a/gcc/gcc/testsuite/objc.dg/const-str-10.m b/gcc/gcc/testsuite/objc.dg/const-str-10.m
index 4efe044c13e35dac87b42ef0048382cf4d355d20..7f59a63f93bebb8a68705ada805c833dd90777e6 100644
--- a/gcc/gcc/testsuite/objc.dg/const-str-10.m
+++ b/gcc/gcc/testsuite/objc.dg/const-str-10.m
@@ -2,10 +2,10 @@
constant string classes get derived. */
/* Contributed by Ziemowit Laski <zlaski@apple.com> */
-/* { dg-options "-fnext-runtime" } */
-/* { dg-do compile { target *-*-darwin* } } */
+/* { dg-do compile { target { *-*-darwin* } } } */
+/* { dg-skip-if "" { *-*-* } { "-fgnu-runtime" } { "" } } */
-#include <objc/Object.h>
+#include "../objc-obj-c++-shared/Object1.h"
@interface NSString: Object
@end
@@ -20,9 +20,14 @@
@interface NSConstantString : NSSimpleCString
@end
+#ifndef NEXT_OBJC_USE_NEW_INTERFACE
extern struct objc_class _NSConstantStringClassReference;
+#else
+extern Class _NSConstantStringClassReference;
+#endif
const NSConstantString *appKey = @"MyApp";
/* { dg-final { scan-assembler ".section __OBJC, __cstring_object" } } */
-/* { dg-final { scan-assembler ".long\t__NSConstantStringClassReference\n\t.long\t.*\n\t.long\t5\n\t.data" } } */
+/* { dg-final { scan-assembler ".long\t__NSConstantStringClassReference\n\t.long\t.*\n\t.long\t5\n\t.data" { target { *-*-darwin* && { ! lp64 } } } } } */
+/* { dg-final { scan-assembler ".quad\t__NSConstantStringClassReference\n\t.quad\t.*\n\t.long\t5\n\t.space" { target { *-*-darwin* && { lp64 } } } } } */
« no previous file with comments | « gcc/gcc/testsuite/objc.dg/const-str-1.m ('k') | gcc/gcc/testsuite/objc.dg/const-str-7.m » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698