diff options
Diffstat (limited to 'clang/test/CodeGenObjC/property-dbg.m')
-rw-r--r-- | clang/test/CodeGenObjC/property-dbg.m | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/clang/test/CodeGenObjC/property-dbg.m b/clang/test/CodeGenObjC/property-dbg.m new file mode 100644 index 0000000..42ab611 --- /dev/null +++ b/clang/test/CodeGenObjC/property-dbg.m @@ -0,0 +1,17 @@ +// RUN: %clang_cc1 -S -g -masm-verbose -x objective-c < %s | grep DW_AT_name +@interface Foo { + int i; +} +@property int i; +@end + +@implementation Foo +@synthesize i; +@end + +int bar(Foo *f) { + int i = 1; + f.i = 2; + i = f.i; + return i; +} |