hanchenye-llvm-project/clang/test/Sema/objc-bad-receiver-1.m

10 lines
187 B
Objective-C

// RUN: clang -fsyntax-only -verify %s
@interface I
- (id) retain;
@end
void __raiseExc1() {
[objc_lookUpClass("NSString") retain]; // expected-error {{ "bad receiver type 'int'" }}
}