blob: 0708989728a38b539049497f35884b4103532d96 [file] [log] [blame]
Douglas Gregor87c30072010-07-26 04:08:02 +00001// RUN: %clang_cc1 %s -fsyntax-only -verify
Fariborz Jahaniana65ff6c2007-09-05 23:08:20 +00002int main ()
3{
4 int i,j;
5 struct S *p;
Chris Lattner69d349a2008-09-19 17:44:00 +00006 id a, b, c;
Douglas Gregor87c30072010-07-26 04:08:02 +00007 [a ii]; // expected-warning{{not found}}
8 [a if: 1 :2]; // expected-warning{{not found}}
Argyrios Kyrtzidis6dff2282010-09-19 21:21:44 +00009 [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 Lattner69d349a2008-09-19 17:44:00 +000015
16 // Comma expression as receiver (rdar://6222856)
Argyrios Kyrtzidis6dff2282010-09-19 21:21:44 +000017 [a, b, c foo]; // expected-warning{{not found}}
Chris Lattner69d349a2008-09-19 17:44:00 +000018
Fariborz Jahaniana65ff6c2007-09-05 23:08:20 +000019}