From d021caab5ea0180395cb790eb8ecafa8f66dc7b6 Mon Sep 17 00:00:00 2001 From: Emilio Cobos Álvarez Date: Mon, 16 Jan 2017 20:03:30 +0100 Subject: ir: Unify function checks so they apply to non-methods. --- libbindgen/tests/headers/inline-function.h | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 libbindgen/tests/headers/inline-function.h (limited to 'libbindgen/tests/headers/inline-function.h') 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; } -- cgit v1.2.3