summaryrefslogtreecommitdiff
path: root/bindgen-tests/tests/headers/dynamic_loading_attributes.h
diff options
context:
space:
mode:
Diffstat (limited to 'bindgen-tests/tests/headers/dynamic_loading_attributes.h')
-rw-r--r--bindgen-tests/tests/headers/dynamic_loading_attributes.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/bindgen-tests/tests/headers/dynamic_loading_attributes.h b/bindgen-tests/tests/headers/dynamic_loading_attributes.h
new file mode 100644
index 00000000..e2ca62b1
--- /dev/null
+++ b/bindgen-tests/tests/headers/dynamic_loading_attributes.h
@@ -0,0 +1,11 @@
+// bindgen-flags: --dynamic-loading TestLib --dynamic-link-require-all --enable-function-attribute-detection
+/**
+ * @brief A function
+ *
+ * @param x
+ * @param y
+ * @return int
+ */
+__attribute__((warn_unused_result))
+int foo(int x, int y);
+int baz() ;