• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// FIXME: Check IR rather than asm, then triple is not needed.
2// RUN: %clang_cc1 -triple %itanium_abi_triple -masm-verbose -S -debug-info-kind=limited %s -o - | FileCheck %s
3
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) {}
34