2016-04-19 02:19:45 +08:00
|
|
|
// RUN: %clang_cc1 -triple x86_64-apple-macosx10.10 -std=c++11 -ast-dump %s | FileCheck %s
|
|
|
|
// CHECK: CXXCtorInitializer Field {{.*}} 'ptr' 'void *'
|
2016-04-19 10:21:47 +08:00
|
|
|
// CHECK: CXXCtorInitializer Field {{.*}} 'q' 'struct Q'
|
2016-04-19 02:19:45 +08:00
|
|
|
|
|
|
|
@interface NSObject
|
|
|
|
@end
|
|
|
|
|
|
|
|
@interface I : NSObject
|
|
|
|
@end
|
|
|
|
|
2016-04-19 10:21:47 +08:00
|
|
|
struct Q { Q(); };
|
|
|
|
|
2016-04-19 02:19:45 +08:00
|
|
|
struct S {
|
|
|
|
S();
|
|
|
|
void *ptr = nullptr;
|
2016-04-19 10:21:47 +08:00
|
|
|
Q q;
|
2016-04-19 02:19:45 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
@implementation I
|
|
|
|
S::S() {}
|
|
|
|
@end
|