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"
8 #import "../objc-obj-c++-shared/next-mapping.h"
10 @interface Foo: Object {
17 @interface Bar: Object
18 + (Foo *) getString: (int) which;
21 #ifdef NEXT_OBJC_USE_NEW_INTERFACE
22 struct fudge_objc_class _FooClassReference;
24 struct objc_class _FooClassReference;
28 + (Foo *) getString: (int) which {
29 return which? [Foo description]: @"Hello";