llvm-project/clang/test/AST/objc-default-ctor-init.mm

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

22 lines
381 B
Plaintext
Raw Normal View History

// 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' 'Q'
@interface NSObject
@end
@interface I : NSObject
@end
struct Q { Q(); };
struct S {
S();
void *ptr = nullptr;
Q q;
};
@implementation I
S::S() {}
@end