// RUN: %clang_cc1 -triple x86_64-apple-macosx10.10 -std=c++11 -ast-dump %s | FileCheck %s
// CHECK: CXXCtorInitializer Field {{.*}} 'ptr' 'void *'

@interface NSObject
@end

@interface I : NSObject
@end

struct S {
  S();
  void *ptr = nullptr;
};

@implementation I
S::S() {}
@end

// 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

@interface I : NSObject
@end

struct Q { Q(); };

struct S {
  S();
  void *ptr = nullptr;
  Q q;
};

@implementation I
S::S() {}
@end

Add a test case to check a member's default constructor is also run.
Add a test case to check a member's default constructor is also run.

This is a follow-up to r266645.


git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@266706 91177308-0d34-0410-b5e6-96231b3b80d8
