| Chris Lattner | b99d749 | 2008-07-26 00:20:22 +0000 | [diff] [blame^] | 1 | // RUN: clang -fsyntax-only -verify %s |
| 2 | |||||
| 3 | @protocol SomeProtocol | ||||
| 4 | @end | ||||
| 5 | |||||
| 6 | void foo(id x) { | ||||
| 7 | bar((short<SomeProtocol>)x); // expected-error {{expected ')'}} expected-error {{to match this '('}} | ||||
| 8 | bar((<SomeProtocol>)x); // expected-warning {{protocol qualifiers without 'id' is archaic}} | ||||
| 9 | } | ||||
| 10 | |||||