| Aaron Ballman | 8c20828 | 2017-12-21 21:42:42 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 -triple x86_64-apple-macosx10.10 -std=c++11 -ast-dump %s | FileCheck %s |
| 2 | // CHECK: CXXCtorInitializer Field {{.*}} 'ptr' 'void *' | ||||
| 3 | // CHECK: CXXCtorInitializer Field {{.*}} 'q' 'Q' | ||||
| 4 | |||||
| 5 | @interface NSObject | ||||
| 6 | @end | ||||
| 7 | |||||
| 8 | @interface I : NSObject | ||||
| 9 | @end | ||||
| 10 | |||||
| 11 | struct Q { Q(); }; | ||||
| 12 | |||||
| 13 | struct S { | ||||
| 14 | S(); | ||||
| 15 | void *ptr = nullptr; | ||||
| 16 | Q q; | ||||
| 17 | }; | ||||
| 18 | |||||
| 19 | @implementation I | ||||
| 20 | S::S() {} | ||||
| 21 | @end | ||||