Douglas Gregor | c5e77d5 | 2010-02-19 15:18:45 +0000 | [diff] [blame^] | 1 | // RUN: %clang_cc1 -fsyntax-only -verify %s |
2 | |||||
3 | @interface I1 | ||||
4 | - (void)method; | ||||
5 | @end | ||||
6 | |||||
7 | @implementation I1 | ||||
8 | - (void)method { | ||||
9 | struct x { }; | ||||
10 | [x method]; // expected-error{{invalid receiver to message expression}} | ||||
11 | } | ||||
12 | @end |