diff options
author | Emilio Cobos Álvarez <emilio@crisal.io> | 2018-12-14 13:43:51 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-12-14 13:43:51 +0100 |
commit | 371e744e4158f23e75adb296433fc684076964ad (patch) | |
tree | 9b3bbf2fff95cf96b170420a7346f0775806ca00 /tests/headers/attribute_warn_unused_result_no_attribute_detection.hpp | |
parent | eb97c1494d5debac81b51847c3cba61496471bfb (diff) | |
parent | 9ba6d13c4320bd7d225b086957c801811458f2c7 (diff) |
Merge pull request #1467 from emilio/attr-detection-flagv0.45.0
ir: Put function attribute detection under an opt-in flag.
Diffstat (limited to 'tests/headers/attribute_warn_unused_result_no_attribute_detection.hpp')
-rw-r--r-- | tests/headers/attribute_warn_unused_result_no_attribute_detection.hpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/headers/attribute_warn_unused_result_no_attribute_detection.hpp b/tests/headers/attribute_warn_unused_result_no_attribute_detection.hpp new file mode 100644 index 00000000..21550307 --- /dev/null +++ b/tests/headers/attribute_warn_unused_result_no_attribute_detection.hpp @@ -0,0 +1,10 @@ +// bindgen-flags: --rust-target 1.27 + +class Foo { +public: + __attribute__((warn_unused_result)) + int foo(int); +}; + +__attribute__((warn_unused_result)) +int foo(int); |