Fariborz Jahanian | ebff1fe | 2009-01-16 20:35:09 +0000 | [diff] [blame] | 1 | // RUN: clang -fsyntax-only -verify %s |
2 | |||||
3 | typedef struct NotAClass { | ||||
4 | int a, b; | ||||
5 | } NotAClass; | ||||
6 | |||||
7 | void foo() { | ||||
8 | [NotAClass nonexistent_method]; // expected-error {{invalid receiver to message expression}} | ||||
9 | } |