1 /* Test to make sure that the const objc strings are the same across
3 /* Developed by Andrew Pinski <pinskia@physics.uc.edu> */
6 /* { dg-options "-fnext-runtime -fconstant-string-class=Foo -lobjc" } */
7 /* { dg-do run { target *-*-darwin* } } */
13 #include <objc/objc.h>
14 #include <objc/Object.h>
17 @interface Foo: Object {
21 - (char *)customString;
24 struct objc_class _FooClassReference;
27 @implementation Foo : Object
28 - (char *)customString {
37 Foo *string2 = @"bla";
42 printf("Strings are being uniqued properly\n");