aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorFariborz Jahanian <fjahanian@apple.com>2009-03-20 19:18:21 +0000
committerFariborz Jahanian <fjahanian@apple.com>2009-03-20 19:18:21 +0000
commitf469557743f77918d2ca8226e2ee2888998ffd4a (patch)
tree2fd3dff79e2563c7b9600e8f7b15f1010d60a9cb /test
parentb82dcd827495592a8748692ce4bf80402f21b8d4 (diff)
More super dot-syntax property implementation
when there is actually a property declaration used in the dot-syntax. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@67391 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r--test/CodeGenObjC/super-dotsyntax-property.m8
-rw-r--r--test/Coverage/objc-language-features.inc2
2 files changed, 8 insertions, 2 deletions
diff --git a/test/CodeGenObjC/super-dotsyntax-property.m b/test/CodeGenObjC/super-dotsyntax-property.m
index 8c51cfc533..cd0d5652d4 100644
--- a/test/CodeGenObjC/super-dotsyntax-property.m
+++ b/test/CodeGenObjC/super-dotsyntax-property.m
@@ -1,6 +1,10 @@
// RUN: clang -emit-llvm -o %t %s
@interface B
+{
+ int _parent;
+}
+@property int parent;
+(int) classGetter;
+(void) setClassGetter:(int) arg;
@@ -25,6 +29,10 @@
super.getter = 200;
int x = super.getter;
}
+-(void) setParent : (int) arg {
+ super.parent = arg + super.parent;
+
+}
@end
void f0() {
diff --git a/test/Coverage/objc-language-features.inc b/test/Coverage/objc-language-features.inc
index 3b092ffbf4..477cbe3746 100644
--- a/test/Coverage/objc-language-features.inc
+++ b/test/Coverage/objc-language-features.inc
@@ -34,9 +34,7 @@
const char *s1 = __FUNCTION__;
const char *s2 = __PRETTY_FUNCTION__;
[super im0];
-#ifndef IRGENABLE
int x = super.p0;
-#endif
}
-(void) im1: (int) x, ... {
}