diff options
Diffstat (limited to 'clang/test/SemaObjCXX/category-lookup.mm')
-rw-r--r-- | clang/test/SemaObjCXX/category-lookup.mm | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/clang/test/SemaObjCXX/category-lookup.mm b/clang/test/SemaObjCXX/category-lookup.mm new file mode 100644 index 0000000..0e87025 --- /dev/null +++ b/clang/test/SemaObjCXX/category-lookup.mm @@ -0,0 +1,10 @@ +// 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'}} +} |