Daniel Dunbar | a572887 | 2009-12-15 20:14:24 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 -fsyntax-only -verify %s |
Fariborz Jahanian | ebff1fe | 2009-01-16 20:35:09 +0000 | [diff] [blame] | 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 | } |