1 /* Test to make sure that the const objc strings are the same across
3 /* Developed by Andrew Pinski <pinskia@physics.uc.edu> */
5 /* { dg-options "-fconstant-string-class=Foo" } */
8 #include "../objc-obj-c++-shared/Object1.h"
9 #include "../objc-obj-c++-shared/next-mapping.h"
13 #include <objc/objc.h>
15 @interface Foo: Object {
19 - (char *)customString;
22 #ifdef NEXT_OBJC_USE_NEW_INTERFACE
23 struct fudge_objc_class _FooClassReference;
25 struct objc_class _FooClassReference;
28 @implementation Foo : Object
29 - (char *)customString {
38 Foo *string2 = @"bla";
42 printf("Strings are being uniqued properly\n");
46 #include "../objc-obj-c++-shared/Object1-implementation.h"