diff options
author | Fariborz Jahanian <fjahanian@apple.com> | 2008-11-22 22:30:21 +0000 |
---|---|---|
committer | Fariborz Jahanian <fjahanian@apple.com> | 2008-11-22 22:30:21 +0000 |
commit | 43f447098d5e6162fbfb97ed38365284207a7fbe (patch) | |
tree | d47eaf5853b61178aa80a6ae24d317553ca1f6ba /test/CodeGenObjC/implicit-property.m | |
parent | 6816856fb1feaf3a8add3d5cd99ec19339849c4e (diff) | |
download | clang-43f447098d5e6162fbfb97ed38365284207a7fbe.tar.gz |
Implemented ir-gen for 'implicit' properties using the new AST nodes.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@59886 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGenObjC/implicit-property.m')
-rw-r--r-- | test/CodeGenObjC/implicit-property.m | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/test/CodeGenObjC/implicit-property.m b/test/CodeGenObjC/implicit-property.m new file mode 100644 index 0000000000..11d2a5603b --- /dev/null +++ b/test/CodeGenObjC/implicit-property.m @@ -0,0 +1,16 @@ +// RUN: clang -emit-llvm -triple=i686-apple-darwin8 -o %t %s +// RUNX: clang -emit-llvm -o %t %s + +@interface A + -(void) setOk:(int)arg; + -(int) ok; + + -(void) setX:(int)arg; + -(int) x; +@end + +void f0(A *a) { + a.x = 1; + a.ok = a.x; +} + |