Timur Iskhodzhanov | ad47776 | 2014-01-30 01:01:36 +0000 | [diff] [blame] | 1 | // FIXME: Check IR rather than asm, then triple is not needed. |
Douglas Katzman | 3459ce2 | 2015-10-08 04:24:12 +0000 | [diff] [blame] | 2 | // RUN: %clang_cc1 -triple %itanium_abi_triple -masm-verbose -S -debug-info-kind=limited %s -o - | FileCheck %s |
Devang Patel | 37a5c95 | 2012-02-07 18:40:30 +0000 | [diff] [blame] | 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 | |
| 33 | void foo(BaseClass2 *ptr) {} |