1 /* Test if ObjC types play nice in conditional expressions. */
2 /* Author: Ziemowit Laski */
4 /* { dg-do compile } */
5 /* { dg-options "-fconstant-string-class=Foo" } */
6 /* { dg-options "-mno-constant-cfstrings -fconstant-string-class=Foo" { target *-*-darwin* } } */
8 #include "../../objc-obj-c++-shared/Object1.h"
10 @interface Foo: Object {
17 @interface Bar: Object
18 + (Foo *) getString: (int) which;
21 #ifdef NEXT_OBJC_USE_NEW_INTERFACE
22 Class _FooClassReference;
24 struct objc_class _FooClassReference;
28 + (Foo *) getString: (int) which {
29 return which? [Foo description]: @"Hello";