blob: 7340fac5f7cdc96bacc265825bd2451f556e0188 [file] [log] [blame]
Fariborz Jahaniana65ff6c2007-09-05 23:08:20 +00001// RUN: clang %s -parse-noop
2int main ()
3{
4 int i,j;
5 struct S *p;
Chris Lattner69d349a2008-09-19 17:44:00 +00006 id a, b, c;
Fariborz Jahaniana65ff6c2007-09-05 23:08:20 +00007 [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 Lattner69d349a2008-09-19 17:44:00 +000015
16 // Comma expression as receiver (rdar://6222856)
17 [a, b, c foo];
18
Fariborz Jahaniana65ff6c2007-09-05 23:08:20 +000019}