aboutsummaryrefslogtreecommitdiff
path: root/test/CodeGenObjC/property-dbg.m
blob: 5bbb04644e053c05b12e1938e7a1fd7f07f23daf (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// RUN: %clang_cc1 -S -g -masm-verbose -x objective-c < %s | grep setI | 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;
}