blob: 191da9c16fcc71b0145f4802142ef5cfcaab7947 [file] [log] [blame]
Timur Iskhodzhanovad477762014-01-30 01:01:36 +00001// FIXME: Check IR rather than asm, then triple is not needed.
Douglas Katzman3459ce22015-10-08 04:24:12 +00002// RUN: %clang_cc1 -triple %itanium_abi_triple -masm-verbose -S -debug-info-kind=limited %s -o - | FileCheck %s
Devang Patel37a5c952012-02-07 18:40:30 +00003
4// CHECK: AT_APPLE_property_name
5// CHECK: AT_APPLE_property_getter
6// CHECK: AT_APPLE_property_setter
7// CHECK: AT_APPLE_property_attribute
8// CHECK: AT_APPLE_property
9
10@interface BaseClass2
11{
12 int _baseInt;
13}
14- (int) myGetBaseInt;
15- (void) mySetBaseInt: (int) in_int;
16@property(getter=myGetBaseInt,setter=mySetBaseInt:) int baseInt;
17@end
18
19@implementation BaseClass2
20
21- (int) myGetBaseInt
22{
23 return _baseInt;
24}
25
26- (void) mySetBaseInt: (int) in_int
27{
28 _baseInt = 2 * in_int;
29}
30@end
31
32
33void foo(BaseClass2 *ptr) {}