summaryrefslogtreecommitdiffstats
path: root/tests/rust/function_noreturn.toml
diff options
context:
space:
mode:
Diffstat (limited to 'tests/rust/function_noreturn.toml')
-rw-r--r--tests/rust/function_noreturn.toml12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/rust/function_noreturn.toml b/tests/rust/function_noreturn.toml
new file mode 100644
index 0000000..33e88c2
--- /dev/null
+++ b/tests/rust/function_noreturn.toml
@@ -0,0 +1,12 @@
+after_includes = """
+#ifndef NO_RETURN_ATTR
+ #ifdef __GNUC__
+ #define NO_RETURN_ATTR __attribute__ ((noreturn))
+ #else // __GNUC__
+ #define NO_RETURN_ATTR
+ #endif // __GNUC__
+#endif // NO_RETURN_ATTR
+"""
+
+[fn]
+no_return = "NO_RETURN_ATTR"