summaryrefslogtreecommitdiffstats
path: root/tests/rust/must_use.toml
blob: 939df10c0fd82af4841aa0175031f379bb23a87b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
header = """
#define MUST_USE_FUNC __attribute__((warn_unused_result))
#define MUST_USE_STRUCT __attribute__((warn_unused))
#define MUST_USE_ENUM /* nothing */
"""

[fn]
must_use = "MUST_USE_FUNC"

[struct]
must_use = "MUST_USE_STRUCT"

[enum]
must_use = "MUST_USE_ENUM"