1 /* Test if constant CFStrings may be passed back as ObjC strings. */
2 /* Author: Ziemowit Laski */
4 /* So far, CFString is darwin-only. */
5 /* { dg-do compile { target *-*-darwin* } } */
6 /* { dg-skip-if "NeXT only" { *-*-* } { "-fgnu-runtime" } { "" } } */
7 /* { dg-options "-mconstant-cfstrings" } */
9 #include <Foundation/NSObject.h>
11 @interface Foo: NSObject {
18 @interface Bar: NSObject
19 + (Foo *) getString: (int) which;
23 + (Foo *) getString: (int) which {
24 return which? [Foo description]: @"Hello";