Douglas Gregor | 87c3007 | 2010-07-26 04:08:02 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 %s -fsyntax-only -verify |
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; |
Douglas Gregor | 87c3007 | 2010-07-26 04:08:02 +0000 | [diff] [blame] | 7 | [a ii]; // expected-warning{{not found}} |
| 8 | [a if: 1 :2]; // expected-warning{{not found}} |
Argyrios Kyrtzidis | 6dff228 | 2010-09-19 21:21:44 +0000 | [diff] [blame^] | 9 | [a inout: 1 :2 another:(2,3,4)]; // expected-warning{{not found}} |
| 10 | [a inout: 1 :2 another:(2,3,4), 6,6,8]; // expected-warning{{not found}} |
| 11 | [a inout: 1 :2 another:(2,3,4), (6,4,5),6,8]; // expected-warning{{not found}} |
| 12 | [a inout: 1 :2 another:(i+10), (i,j-1,5),6,8]; // expected-warning{{not found}} |
| 13 | [a long: 1 :2 another:(i+10), (i,j-1,5),6,8]; // expected-warning{{not found}} |
| 14 | [a : "Hello\n" :2 another:(i+10), (i,j-1,5),6,8]; // expected-warning{{not found}} |
Chris Lattner | 69d349a | 2008-09-19 17:44:00 +0000 | [diff] [blame] | 15 | |
| 16 | // Comma expression as receiver (rdar://6222856) |
Argyrios Kyrtzidis | 6dff228 | 2010-09-19 21:21:44 +0000 | [diff] [blame^] | 17 | [a, b, c foo]; // expected-warning{{not found}} |
Chris Lattner | 69d349a | 2008-09-19 17:44:00 +0000 | [diff] [blame] | 18 | |
Fariborz Jahanian | a65ff6c | 2007-09-05 23:08:20 +0000 | [diff] [blame] | 19 | } |