brintos

brintos / llvm-project-archived public Read only

0
0
Text · 796 B · 4fbea57 Raw
42 lines · plain
1// RUN: %clang_cc1 -fsyntax-only -verify %s2 3@interface WeirdInterface4-(void)allOfThem:(int)a5             and:(int)b6          and_eq:(int)c7          bitand:(int)d8           bitor:(int)e9           compl:(int)f10             not:(int)g11          not_eq:(int)h12              or:(int)i13           or_eq:(int)j14             xor:(int)k15          xor_eq:(int)l;16 17-(void)justAnd:(int)x and:(int)y;18-(void)and;19-(void)and:(int)x;20@end21 22void call_it(WeirdInterface *x) {23  [x allOfThem:024           and:025        and_eq:026        bitand:027         bitor:028         compl:029           not:030        not_eq:031            or:032         or_eq:033           xor:034        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}42