Summary: Shafik found out that importing a CXXConstructorDecl will create a translation unit that causes Clang's CodeGen to crash. The reason for that is that we don't copy the OperatorDelete from the CXXConstructorDecl when importing. This patch fixes it and adds a test case for that. Reviewers: shafik, martong, a_sidorin, a.sidorin Reviewed By: martong, a_sidorin Subscribers: rnkovacs, cfe-commits Differential Revision: https://reviews.llvm.org/D56651 llvm-svn: 351849
11 lines
265 B
C++
11 lines
265 B
C++
// RUN: clang-import-test -dump-ast -import %S/Inputs/F.cpp -expression %s
|
|
|
|
// Triggers the deserialization of B's destructor.
|
|
B b1;
|
|
|
|
// CHECK: CXXDestructorDecl
|
|
|
|
// CHECK-NEXT: ~B 'void () noexcept' virtual
|
|
// CHECK-SAME: 'void () noexcept'
|
|
// CHECK-SAME: virtual
|