blob: 4a36fc950fa8c99c97a0ad8d2f018d2180aaa7ee [file] [log] [blame]
Daniel Dunbard7d5f022009-03-24 02:24:46 +00001// RUN: clang-cc %s -parse-noop
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;
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}