forked from OSchip/llvm-project
Add a test case to check a member's default constructor is also run.
This is a follow-up to r266645. llvm-svn: 266706
This commit is contained in:
parent
5d55a42824
commit
d66dc19251
|
@ -1,5 +1,6 @@
|
|||
// RUN: %clang_cc1 -triple x86_64-apple-macosx10.10 -std=c++11 -ast-dump %s | FileCheck %s
|
||||
// CHECK: CXXCtorInitializer Field {{.*}} 'ptr' 'void *'
|
||||
// CHECK: CXXCtorInitializer Field {{.*}} 'q' 'struct Q'
|
||||
|
||||
@interface NSObject
|
||||
@end
|
||||
|
@ -7,9 +8,12 @@
|
|||
@interface I : NSObject
|
||||
@end
|
||||
|
||||
struct Q { Q(); };
|
||||
|
||||
struct S {
|
||||
S();
|
||||
void *ptr = nullptr;
|
||||
Q q;
|
||||
};
|
||||
|
||||
@implementation I
|
||||
|
|
Loading…
Reference in New Issue