Daniel Dunbar | d7d5f02 | 2009-03-24 02:24:46 +0000 | [diff] [blame] | 1 | // RUN: clang-cc %s -parse-noop |
Fariborz Jahanian | a65ff6c | 2007-09-05 23:08:20 +0000 | [diff] [blame] | 2 | int main () |
| 3 | { |
| 4 | int i,j; |
| 5 | struct S *p; |
Chris Lattner | 69d349a | 2008-09-19 17:44:00 +0000 | [diff] [blame] | 6 | id a, b, c; |
Fariborz Jahanian | a65ff6c | 2007-09-05 23:08:20 +0000 | [diff] [blame] | 7 | [p ii]; |
| 8 | [p if: 1 :2]; |
| 9 | [p inout: 1 :2 another:(2,3,4)]; |
| 10 | [p inout: 1 :2 another:(2,3,4), 6,6,8]; |
| 11 | [p inout: 1 :2 another:(2,3,4), (6,4,5),6,8]; |
| 12 | [p inout: 1 :2 another:(i+10), (i,j-1,5),6,8]; |
| 13 | [p long: 1 :2 another:(i+10), (i,j-1,5),6,8]; |
| 14 | [p : "Hello\n" :2 another:(i+10), (i,j-1,5),6,8]; |
Chris Lattner | 69d349a | 2008-09-19 17:44:00 +0000 | [diff] [blame] | 15 | |
| 16 | // Comma expression as receiver (rdar://6222856) |
| 17 | [a, b, c foo]; |
| 18 | |
Fariborz Jahanian | a65ff6c | 2007-09-05 23:08:20 +0000 | [diff] [blame] | 19 | } |