diff options
author | bors-servo <lbergstrom+bors@mozilla.com> | 2017-01-19 08:59:01 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-01-19 08:59:01 -0800 |
commit | be53b94cae2618653f885290956edcf1e5545078 (patch) | |
tree | 07dc38336296fdf8aff96e6aa5fa9d95845a028a /libbindgen/tests/headers/inline-function.h | |
parent | 36547ae216181fbcb1e3ec197e931ded17428e4c (diff) | |
parent | d021caab5ea0180395cb790eb8ecafa8f66dc7b6 (diff) |
Auto merge of #401 - emilio:function-checks, r=fitzgen
ir: Unify function checks so they apply to non-methods.
Fixes #399
r? @fitzgen
Diffstat (limited to 'libbindgen/tests/headers/inline-function.h')
-rw-r--r-- | libbindgen/tests/headers/inline-function.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libbindgen/tests/headers/inline-function.h b/libbindgen/tests/headers/inline-function.h new file mode 100644 index 00000000..02cb7c08 --- /dev/null +++ b/libbindgen/tests/headers/inline-function.h @@ -0,0 +1,6 @@ +// bindgen-unstable + +/** The point of this test is to _not_ generate these functions. */ + +inline static int myadd(const int x, const int y) { return x + y; } +static int mysub(const int x, const int y) { return x - y; } |