aboutsummaryrefslogtreecommitdiff
path: root/test/Import/destructor/test.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/Import/destructor/test.cpp')
-rw-r--r--test/Import/destructor/test.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/Import/destructor/test.cpp b/test/Import/destructor/test.cpp
new file mode 100644
index 0000000000..bfdee398c8
--- /dev/null
+++ b/test/Import/destructor/test.cpp
@@ -0,0 +1,10 @@
+// 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