llvm-project/clang/test/SemaObjCXX/category-lookup.mm

11 lines
246 B
Plaintext

// RUN: %clang_cc1 -fsyntax-only -verify %s
@interface NSObject @end
@interface NSObject (NSScriptClassDescription)
@end
void f() {
NSScriptClassDescription *f; // expected-error {{use of undeclared identifier 'NSScriptClassDescription'}}
}