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 | 9ac535162b9d984ea1e93b59a55fed79bdd33a29 (patch) | |
tree | 196d00812f4460aa8ca709053f3c15c34f09423f /clang/test | |
parent | 6cae80da202053bda44b3ca2bca44b4db50f1d7f (diff) | |
download | bcm5719-llvm-9ac535162b9d984ea1e93b59a55fed79bdd33a29.tar.gz bcm5719-llvm-9ac535162b9d984ea1e93b59a55fed79bdd33a29.zip |
Implemented ir-gen for 'implicit' properties using the new AST nodes.
llvm-svn: 59886
Diffstat (limited to 'clang/test')
-rw-r--r-- | clang/test/CodeGenObjC/implicit-property.m | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/clang/test/CodeGenObjC/implicit-property.m b/clang/test/CodeGenObjC/implicit-property.m new file mode 100644 index 00000000000..11d2a5603b8 --- /dev/null +++ b/clang/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; +} + |