summaryrefslogtreecommitdiff
path: root/libbindgen/tests/headers/inline-function.h
diff options
context:
space:
mode:
authorbors-servo <lbergstrom+bors@mozilla.com>2017-01-19 08:59:01 -0800
committerGitHub <noreply@github.com>2017-01-19 08:59:01 -0800
commitbe53b94cae2618653f885290956edcf1e5545078 (patch)
tree07dc38336296fdf8aff96e6aa5fa9d95845a028a /libbindgen/tests/headers/inline-function.h
parent36547ae216181fbcb1e3ec197e931ded17428e4c (diff)
parentd021caab5ea0180395cb790eb8ecafa8f66dc7b6 (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.h6
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; }