1// RUN: clang -cc1 -fsyntax-only -verify %s
2
3@interface Foo
4@end
5
6@implementation Foo
7- (id)test {
8        id bar;
9    Class cl;
10    Foo *f;
11
12    (void)((bar!= 0) ? bar : 0);
13    (void)((cl != 0) ? cl : 0);
14    (void)((f != 0) ? 0 : f);
15    return (0 == 1) ? 0 : bar;
16}
17@end
18
19