1 /* Test to make sure that the const objc strings are the same across scopes. */
2 /* Developed by Andrew Pinski <pinskia@physics.uc.edu> */
3 /* { dg-options "-fconstant-string-class=Foo " } */
6 #include "../objc-obj-c++-shared/Object1.h"
11 @interface Foo: Object {
15 - (char *)customString;
18 #ifndef NEXT_OBJC_USE_NEW_INTERFACE
19 struct objc_class _FooClassReference;
21 Class _FooClassReference;
24 @implementation Foo : Object
25 - (char *)customString {
33 Foo *string2 = @"bla";
37 printf("Strings are being uniqued properly\n");
42 #include "../objc-obj-c++-shared/Object1-implementation.h"