summaryrefslogtreecommitdiffstats
path: root/tests/rust/destructor_and_copy_ctor.toml
diff options
context:
space:
mode:
Diffstat (limited to 'tests/rust/destructor_and_copy_ctor.toml')
-rw-r--r--tests/rust/destructor_and_copy_ctor.toml16
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/rust/destructor_and_copy_ctor.toml b/tests/rust/destructor_and_copy_ctor.toml
new file mode 100644
index 0000000..a1d91e5
--- /dev/null
+++ b/tests/rust/destructor_and_copy_ctor.toml
@@ -0,0 +1,16 @@
+header = """
+#define NOINLINE __attribute__((noinline))
+#define NODISCARD [[nodiscard]]
+"""
+
+[enum]
+derive_tagged_enum_destructor = true
+derive_tagged_enum_copy_constructor = true
+derive_tagged_enum_copy_assignment = true
+derive_helper_methods = true
+private_default_tagged_enum_constructor = true
+
+[export.body]
+"OwnedSlice" = """
+ ~OwnedSlice() {}
+"""