summaryrefslogtreecommitdiff
path: root/libbindgen/tests/headers/inline-function.h
diff options
context:
space:
mode:
authorEmilio Cobos Álvarez <emilio@crisal.io>2017-01-16 20:03:30 +0100
committerEmilio Cobos Álvarez <emilio@crisal.io>2017-01-16 20:04:18 +0100
commitd021caab5ea0180395cb790eb8ecafa8f66dc7b6 (patch)
treeffe5b5e678a8bfb632dc31b04abd237c8e5f0e6e /libbindgen/tests/headers/inline-function.h
parentb570ce853e33bfcfa05dd339bf432377c4a2fab8 (diff)
ir: Unify function checks so they apply to non-methods.
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; }