[lld][WebAssembly] Reinstate mistakenly disabled test. NFC
[llvm-project.git] / clang / test / Parser / objc-messaging-1.m
blob6c0b78d63b87c2960b798c66241f132d4f6d4be0
1 // RUN: %clang_cc1 %s -fsyntax-only -verify
2 int main ()
4         int i,j;
5         struct S *p;
6         id a, b, c;
7         [a ii]; // expected-warning{{not found}}
8         [a if: 1 :2]; // expected-warning{{not found}}
9         [a inout: 1 :2 another:(2,3,4)]; // expected-warning{{not found}} \
10            // expected-warning 2{{left operand of comma operator has no effect}}
11         [a inout: 1 :2 another:(2,3,4), 6,6,8]; // expected-warning{{not found}} \
12            // expected-warning 2{{left operand of comma operator has no effect}}
13         [a inout: 1 :2 another:(2,3,4), (6,4,5),6,8]; // expected-warning{{not found}} \
14            // expected-warning 4{{left operand of comma operator has no effect}}
15         [a inout: 1 :2 another:(i+10), (i,j-1,5),6,8]; // expected-warning{{not found}} \
16            // expected-warning 2{{left operand of comma operator has no effect}}
17         [a long: 1 :2 another:(i+10), (i,j-1,5),6,8]; // expected-warning{{not found}} \
18            // expected-warning 2{{left operand of comma operator has no effect}}
19         [a : "Hello\n" :2 another:(i+10), (i,j-1,5),6,8]; // expected-warning{{not found}} \
20            // expected-warning 2{{left operand of comma operator has no effect}}
22         // Comma expression as receiver (rdar://6222856)
23         [a, b, c foo]; // expected-warning{{not found}} \
24            // expected-warning 2{{left operand of comma operator has no effect}}