diff options
Diffstat (limited to 'clang/test/ASTMerge/inheritance/test.cpp')
-rw-r--r-- | clang/test/ASTMerge/inheritance/test.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/clang/test/ASTMerge/inheritance/test.cpp b/clang/test/ASTMerge/inheritance/test.cpp new file mode 100644 index 00000000000..7fce82a736a --- /dev/null +++ b/clang/test/ASTMerge/inheritance/test.cpp @@ -0,0 +1,8 @@ +// RUN: %clang_cc1 -triple %itanium_abi_triple -std=c++1z -emit-pch -o %t.1.ast %S/Inputs/inheritance-base.cpp +// RUN: %clang_cc1 -triple %itanium_abi_triple -std=c++1z -ast-merge %t.1.ast -fsyntax-only -verify %s +// expected-no-diagnostics + +class B : public A { + B(int _a) : A(_a) { + } +}; |