summaryrefslogtreecommitdiff
path: root/bindgen-tests/tests/headers/attribute_warn_unused_result.hpp
blob: 26fda0910cb340d9bc48f4c9560f875a18d6d171 (plain)
1
2
3
4
5
6
7
8
9
10
// bindgen-flags: --rust-target 1.27 --enable-function-attribute-detection

class Foo {
public:
    __attribute__((warn_unused_result))
    int foo(int);
};

__attribute__((warn_unused_result))
int foo(int);