summaryrefslogtreecommitdiffstats
path: root/tests/rust/asserted_cast.toml
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--tests/rust/asserted_cast.toml10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/rust/asserted_cast.toml b/tests/rust/asserted_cast.toml
new file mode 100644
index 0000000..4ed3557
--- /dev/null
+++ b/tests/rust/asserted_cast.toml
@@ -0,0 +1,10 @@
+header = """
+#define MY_ASSERT(...) do { } while (0)
+#define MY_ATTRS __attribute((noinline))
+"""
+
+[enum]
+derive_helper_methods = true
+derive_const_casts = true
+derive_mut_casts = true
+cast_assert_name = "MY_ASSERT"