1 /* Test for assigning compile-time constant-string objects to static variables. */
2 /* Contributed by Ziemowit Laski <zlaski@apple.com> */
3 /* { dg-options "-fconstant-string-class=Foo" } */
6 #include "../objc-obj-c++-shared/Object1.h"
9 @interface Foo: Object {
15 #ifndef NEXT_OBJC_USE_NEW_INTERFACE
16 struct objc_class _FooClassReference;
18 Class _FooClassReference;
21 @implementation Foo : Object
22 - (char *)customString {
27 static const Foo *appKey = @"MyApp";
28 static int CFPreferencesSynchronize (const Foo *ref) {
32 static void PrefsSynchronize(void)
34 if(!CFPreferencesSynchronize(appKey))
43 #include "../objc-obj-c++-shared/Object1-implementation.h"