blob: f0615a32bea92c01944335a43c87c6242a162c21 (
plain)
1
2
3
4
5
6
7
8
9
10
|
// RUN: clang -fsyntax-only -verify %s
@protocol SomeProtocol
@end
void foo(id x) {
bar((short<SomeProtocol>)x); // expected-error {{expected ')'}} expected-error {{to match this '('}}
bar((<SomeProtocol>)x); // expected-warning {{protocol qualifiers without 'id' is archaic}}
}
|