summaryrefslogtreecommitdiffstats
path: root/tests/rust/deprecated.toml
diff options
context:
space:
mode:
Diffstat (limited to 'tests/rust/deprecated.toml')
-rw-r--r--tests/rust/deprecated.toml20
1 files changed, 20 insertions, 0 deletions
diff --git a/tests/rust/deprecated.toml b/tests/rust/deprecated.toml
new file mode 100644
index 0000000..4a2bad5
--- /dev/null
+++ b/tests/rust/deprecated.toml
@@ -0,0 +1,20 @@
+header = """
+#define DEPRECATED_FUNC __attribute__((deprecated))
+#define DEPRECATED_STRUCT __attribute__((deprecated))
+#define DEPRECATED_ENUM __attribute__((deprecated))
+#define DEPRECATED_FUNC_WITH_NOTE(...) __attribute__((deprecated(__VA_ARGS__)))
+#define DEPRECATED_STRUCT_WITH_NOTE(...) __attribute__((deprecated(__VA_ARGS__)))
+#define DEPRECATED_ENUM_WITH_NOTE(...) __attribute__((deprecated(__VA_ARGS__)))
+"""
+
+[fn]
+deprecated = "DEPRECATED_FUNC"
+deprecated_with_note = "DEPRECATED_FUNC_WITH_NOTE({})"
+
+[struct]
+deprecated = "DEPRECATED_STRUCT"
+deprecated_with_note = "DEPRECATED_STRUCT_WITH_NOTE({})"
+
+[enum]
+deprecated = "DEPRECATED_ENUM"
+deprecated_with_note = "DEPRECATED_ENUM_WITH_NOTE({})"