summaryrefslogtreecommitdiffstats
path: root/clang/test/Sema/objc-interface-1.m
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/Sema/objc-interface-1.m')
-rw-r--r--clang/test/Sema/objc-interface-1.m8
1 files changed, 8 insertions, 0 deletions
diff --git a/clang/test/Sema/objc-interface-1.m b/clang/test/Sema/objc-interface-1.m
new file mode 100644
index 00000000000..0e025422519
--- /dev/null
+++ b/clang/test/Sema/objc-interface-1.m
@@ -0,0 +1,8 @@
+// RUN: clang %s -fsyntax-only -verify
+// rdar://5957506
+
+@interface NSWhatever :
+NSObject // expected-error {{cannot find interface declaration for 'NSObject'}}
+<NSCopying> // expected-error {{cannot find protocol definition for 'NSCopying'}}
+@end
+
OpenPOWER on IntegriCloud