1 /* Based on a test case contributed by Nicola Pero. */
4 /* { dg-options "-mno-constant-cfstrings" { target *-*-darwin* } } */
5 /* { dg-xfail-run-if "Needs OBJC2 ABI" { *-*-darwin* && { lp64 && { ! objc2 } } } { "-fnext-runtime" } { "" } } */
6 /* { dg-additional-sources "../../../objc-obj-c++-shared/Object1.m" } */
8 #include "../../../objc-obj-c++-shared/Object1.h"
9 #include "../../../objc-obj-c++-shared/next-mapping.h"
14 #ifndef __NEXT_RUNTIME__
15 #include <objc/NXConstStr.h>
18 int main(int argc, void **args)
20 if (strcmp ([@"this is a string" cString], "this is a string"))