Erik Pilkington | c678138 | 2018-08-21 16:47:04 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 -fsyntax-only -verify %s |
2 | |||||
3 | @interface WeirdInterface | ||||
4 | -(void)allOfThem:(int)a | ||||
5 | and:(int)b | ||||
6 | and_eq:(int)c | ||||
7 | bitand:(int)d | ||||
8 | bitor:(int)e | ||||
9 | compl:(int)f | ||||
10 | not:(int)g | ||||
11 | not_eq:(int)h | ||||
12 | or:(int)i | ||||
13 | or_eq:(int)j | ||||
14 | xor:(int)k | ||||
15 | xor_eq:(int)l; | ||||
16 | |||||
17 | -(void)justAnd:(int)x and:(int)y; | ||||
18 | -(void)and; | ||||
19 | -(void)and:(int)x; | ||||
20 | @end | ||||
21 | |||||
22 | void call_it(WeirdInterface *x) { | ||||
23 | [x allOfThem:0 | ||||
24 | and:0 | ||||
25 | and_eq:0 | ||||
26 | bitand:0 | ||||
27 | bitor:0 | ||||
28 | compl:0 | ||||
29 | not:0 | ||||
30 | not_eq:0 | ||||
31 | or:0 | ||||
32 | or_eq:0 | ||||
33 | xor:0 | ||||
34 | xor_eq:0]; | ||||
35 | |||||
36 | [x and]; | ||||
37 | [x and:0]; | ||||
38 | [x &&:0]; // expected-error{{expected expression}}; | ||||
39 | [x justAnd:0 and:1]; | ||||
40 | [x and: 0 ? : 1]; | ||||
41 | } |