1 /* Test if ObjC types play nice in conditional expressions. */
2 /* Author: Ziemowit Laski */
4 /* { dg-options "-fconstant-string-class=Foo" } */
5 /* { dg-do compile } */
7 #include "../objc-obj-c++-shared/Object1.h"
9 @interface Foo: Object {
16 @interface Bar: Object
17 + (Foo *) getString: (int) which;
20 struct objc_class _FooClassReference;
23 + (Foo *) getString: (int) which {
24 return which? [Foo description]: @"Hello";