/* Test for assigning compile-time constant-string objects to static variables. */
/* Contributed by Ziemowit Laski <zlaski@apple.com> */
-/* { dg-options "-fconstant-string-class=Foo" } */
/* { dg-do run } */
+/* { dg-options "-fconstant-string-class=Foo" } */
+/* { dg-options "-mno-constant-cfstrings -fconstant-string-class=Foo" { target *-*-darwin* } } */
+/* { dg-additional-sources "../../../objc-obj-c++-shared/Object1.m" } */
-#include "../objc-obj-c++-shared/Object1.h"
+#include "../../../objc-obj-c++-shared/Object1.h"
#include <stdlib.h>
@interface Foo: Object {
}
@end
-#ifndef NEXT_OBJC_USE_NEW_INTERFACE
-struct objc_class _FooClassReference;
-#else
+#ifdef NEXT_OBJC_USE_NEW_INTERFACE
Class _FooClassReference;
+#else
+struct objc_class _FooClassReference;
#endif
@implementation Foo : Object
PrefsSynchronize();
return 0;
}
-
-#include "../objc-obj-c++-shared/Object1-implementation.h"