Daniel Dunbar | a572887 | 2009-12-15 20:14:24 +0000 | [diff] [blame^] | 1 | // RUN: %clang_cc1 -fsyntax-only -verify %s |
Fariborz Jahanian | 0cedfbd | 2009-12-08 20:04:24 +0000 | [diff] [blame] | 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 |