xref: /llvm-project/clang/test/SemaObjC/invalid-receiver.m (revision 7deaeb2a056c1756ce6f2550d2ebb91b81b9ff29)
1// RUN: %clang_cc1 -fsyntax-only -verify %s
2
3typedef struct NotAClass {
4  int a, b;
5} NotAClass;
6
7void foo(void) {
8  [NotAClass nonexistent_method]; // expected-error {{receiver type 'NotAClass' (aka 'struct NotAClass') is not an Objective-C class}}
9}
10