summaryrefslogtreecommitdiff
path: root/clang/test/SemaObjC/class-extension-after-implementation.m
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/SemaObjC/class-extension-after-implementation.m')
-rw-r--r--clang/test/SemaObjC/class-extension-after-implementation.m11
1 files changed, 11 insertions, 0 deletions
diff --git a/clang/test/SemaObjC/class-extension-after-implementation.m b/clang/test/SemaObjC/class-extension-after-implementation.m
new file mode 100644
index 0000000..ccfd3ef
--- /dev/null
+++ b/clang/test/SemaObjC/class-extension-after-implementation.m
@@ -0,0 +1,11 @@
+// RUN: %clang_cc1 -fsyntax-only -verify -Wno-objc-root-class %s
+// rdar://7822210
+
+@interface A @end
+
+@implementation A @end // expected-note {{class implementation is declared here}}
+
+@interface A () // expected-error {{cannot declare class extension for 'A' after class implementation}}
+-(void) im0;
+@end
+