summaryrefslogtreecommitdiff
path: root/libbindgen/tests/headers/class_with_dtor.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'libbindgen/tests/headers/class_with_dtor.hpp')
-rw-r--r--libbindgen/tests/headers/class_with_dtor.hpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/libbindgen/tests/headers/class_with_dtor.hpp b/libbindgen/tests/headers/class_with_dtor.hpp
new file mode 100644
index 00000000..b9bf74e1
--- /dev/null
+++ b/libbindgen/tests/headers/class_with_dtor.hpp
@@ -0,0 +1,13 @@
+
+
+template <typename T>
+class HandleWithDtor {
+ T* ptr;
+ ~HandleWithDtor() {}
+};
+
+typedef HandleWithDtor<int> HandleValue;
+
+class WithoutDtor {
+ HandleValue shouldBeWithDtor;
+};