blob: 3ace0ac3de09ce44e5a190962b466d7b9cf035c7 [file] [log] [blame]
Chris Lattnerbce61352008-07-26 00:20:22 +00001// RUN: clang -fsyntax-only -verify %s
Chris Lattner62f5f7f2008-07-26 00:46:50 +00002// rdar://5986251
Chris Lattnerbce61352008-07-26 00:20:22 +00003
4@protocol SomeProtocol
Chris Lattner62f5f7f2008-07-26 00:46:50 +00005- (void) bar;
Chris Lattnerbce61352008-07-26 00:20:22 +00006@end
7
8void foo(id x) {
9 bar((short<SomeProtocol>)x); // expected-error {{expected ')'}} expected-error {{to match this '('}}
10 bar((<SomeProtocol>)x); // expected-warning {{protocol qualifiers without 'id' is archaic}}
Chris Lattner62f5f7f2008-07-26 00:46:50 +000011
12 [(<SomeProtocol>)x bar]; // expected-warning {{protocol qualifiers without 'id' is archaic}}
Chris Lattnerbce61352008-07-26 00:20:22 +000013}
14