Improve the diagnostic for -Wcustom-atomic-properties. Suggestion by Fariborz!
[clang.git] / test / SemaObjC / invalid-receiver.m
blob1174dd2e1706da32651d5e010a481d9d8412fd39
1 // RUN: %clang_cc1 -fsyntax-only -verify %s
3 typedef struct NotAClass {
4   int a, b;
5 } NotAClass;
7 void foo() {
8   [NotAClass nonexistent_method]; // expected-error {{receiver type 'NotAClass' (aka 'struct NotAClass') is not an Objective-C class}}