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

// RUN: %clang_cc1 -fsyntax-only -verify %s

@interface NSObject @end

@interface NSObject (NSScriptClassDescription)
@end

void f() {
  NSScriptClassDescription *f; // expected-error {{unknown type name 'NSScriptClassDescription'}}
}