| 1 |
// RUN: %clang_cc1 -fsyntax-only -verify %s |
| 2 |
|
| 3 |
typedef struct NotAClass { |
| 4 |
int a, b; |
| 5 |
} NotAClass; |
| 6 |
|
| 7 |
void foo(void) { |
| 8 |
[NotAClass nonexistent_method]; // expected-error {{receiver type 'NotAClass' (aka 'struct NotAClass') is not an Objective-C class}} |
| 9 |
} |