xref: /minix3/external/bsd/llvm/dist/clang/test/CodeGenObjC/property-dbg.m (revision 0a6a1f1d05b60e214de2f05a7310ddd1f0e590e7)
1*0a6a1f1dSLionel Sambuc// FIXME: Check IR rather than asm, then triple is not needed.
2*0a6a1f1dSLionel Sambuc// RUN: %clang_cc1 -triple %itanium_abi_triple -S -g -masm-verbose -x objective-c < %s | grep DW_AT_name
3f4a2713aSLionel Sambuc@interface Foo {
4f4a2713aSLionel Sambuc  int i;
5f4a2713aSLionel Sambuc}
6f4a2713aSLionel Sambuc@property int i;
7f4a2713aSLionel Sambuc@end
8f4a2713aSLionel Sambuc
9f4a2713aSLionel Sambuc@implementation Foo
10f4a2713aSLionel Sambuc@synthesize i;
11f4a2713aSLionel Sambuc@end
12f4a2713aSLionel Sambuc
13f4a2713aSLionel Sambucint bar(Foo *f) {
14f4a2713aSLionel Sambuc  int i = 1;
15f4a2713aSLionel Sambuc  f.i = 2;
16f4a2713aSLionel Sambuc  i = f.i;
17f4a2713aSLionel Sambuc  return i;
18f4a2713aSLionel Sambuc}
19