summaryrefslogtreecommitdiff
path: root/clang/test/SemaObjC/interface-layout-2.m
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/SemaObjC/interface-layout-2.m')
-rw-r--r--clang/test/SemaObjC/interface-layout-2.m16
1 files changed, 16 insertions, 0 deletions
diff --git a/clang/test/SemaObjC/interface-layout-2.m b/clang/test/SemaObjC/interface-layout-2.m
new file mode 100644
index 0000000..02b1403
--- /dev/null
+++ b/clang/test/SemaObjC/interface-layout-2.m
@@ -0,0 +1,16 @@
+// RUN: %clang_cc1 %s -fsyntax-only -verify
+@interface A
+{
+ int ivar;
+}
+@end
+
+@interface B : A
+- (int)ivar;
+@end
+
+@implementation B
+- (int)ivar {
+ return ivar;
+}
+@end