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

Unified Diff: gcc/gcc/testsuite/objc.dg/const-str-7.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-10.m ('k') | gcc/gcc/testsuite/objc.dg/const-str-9.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-7.m
diff --git a/gcc/gcc/testsuite/objc.dg/const-str-7.m b/gcc/gcc/testsuite/objc.dg/const-str-7.m
index 3691579381d3a931b3697862998782ab77bc1cd5..223789aed7ddbf98848c2d74d92ba623f88d7326 100644
--- a/gcc/gcc/testsuite/objc.dg/const-str-7.m
+++ b/gcc/gcc/testsuite/objc.dg/const-str-7.m
@@ -1,18 +1,12 @@
-/* Test to make sure that the const objc strings are the same across
- scopes. */
+/* Test to make sure that the const objc strings are the same across scopes. */
/* Developed by Andrew Pinski <pinskia@physics.uc.edu> */
+/* { dg-options "-fconstant-string-class=Foo " } */
+/* { dg-do run } */
-
-/* { dg-options "-fnext-runtime -fconstant-string-class=Foo -lobjc" } */
-/* { dg-do run { target *-*-darwin* } } */
-
-
+#include "../objc-obj-c++-shared/Object1.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 +15,11 @@
- (char *)customString;
@end
+#ifndef NEXT_OBJC_USE_NEW_INTERFACE
struct objc_class _FooClassReference;
-
+#else
+Class _FooClassReference;
+#endif
@implementation Foo : Object
- (char *)customString {
@@ -30,13 +27,11 @@ struct objc_class _FooClassReference;
}
@end
-
int main () {
Foo *string = @"bla";
{
Foo *string2 = @"bla";
-
if(string != string2)
abort();
printf("Strings are being uniqued properly\n");
@@ -44,3 +39,4 @@ int main () {
return 0;
}
+#include "../objc-obj-c++-shared/Object1-implementation.h"
« no previous file with comments | « gcc/gcc/testsuite/objc.dg/const-str-10.m ('k') | gcc/gcc/testsuite/objc.dg/const-str-9.m » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698