2009-03-24 10:24:46 +08:00
|
|
|
// RUN: clang-cc -fsyntax-only -verify %s
|
2009-01-17 04:35:09 +08:00
|
|
|
|
|
|
|
typedef struct NotAClass {
|
|
|
|
int a, b;
|
|
|
|
} NotAClass;
|
|
|
|
|
|
|
|
void foo() {
|
|
|
|
[NotAClass nonexistent_method]; // expected-error {{invalid receiver to message expression}}
|
|
|
|
}
|