1 /* Ensure that the preprocessor handles ObjC string constants gracefully. */
2 /* Author: Ziemowit Laski <zlaski@apple.com> */
3 /* { dg-options "-fnext-runtime -fconstant-string-class=MyString -lobjc" } */
4 /* { dg-do run { target *-*-darwin* } } */
6 extern void abort(void);
16 #define kMyStringMacro1 "My String"
17 #define kMyStringMacro2 @"My String"
19 void *_MyStringClassReference;
21 @implementation MyString
25 MyString* aString1 = @kMyStringMacro1;
26 MyString* aString2 = kMyStringMacro2;
27 if(aString1 != aString2) {