aboutsummaryrefslogtreecommitdiff
path: root/test/SemaObjC/ivar-lookup.m
diff options
context:
space:
mode:
Diffstat (limited to 'test/SemaObjC/ivar-lookup.m')
-rw-r--r--test/SemaObjC/ivar-lookup.m18
1 files changed, 18 insertions, 0 deletions
diff --git a/test/SemaObjC/ivar-lookup.m b/test/SemaObjC/ivar-lookup.m
new file mode 100644
index 000000000000..b168976da136
--- /dev/null
+++ b/test/SemaObjC/ivar-lookup.m
@@ -0,0 +1,18 @@
+// RUN: clang-cc %s -fsyntax-only -verify
+
+@interface Test {
+ int x;
+}
+
+-(void) setX: (int) d;
+@end
+
+extern struct foo x;
+
+@implementation Test
+
+-(void) setX: (int) n {
+ x = n;
+}
+
+@end