10 lines
203 B
Mathematica
10 lines
203 B
Mathematica
|
// RUN: clang -fsyntax-only -verify %s
|
||
|
|
||
|
typedef struct NotAClass {
|
||
|
int a, b;
|
||
|
} NotAClass;
|
||
|
|
||
|
void foo() {
|
||
|
[NotAClass nonexistent_method]; // expected-error {{invalid receiver to message expression}}
|
||
|
}
|