summaryrefslogtreecommitdiffstats
path: root/test/CodeGenObjC/property-dbg.m
blob: fb70747f5db8907d5091fe1709cb21413c888508 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// FIXME: Check IR rather than asm, then triple is not needed.
// RUN: %clang_cc1 -triple %itanium_abi_triple -S -debug-info-kind=limited -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;
}