From 8270a0ca766ea834032daeb67c7f32a1947ab3bd Mon Sep 17 00:00:00 2001 From: Jeff Waugh Date: Tue, 15 Nov 2016 14:37:20 +1100 Subject: Transition to libbindgen sub-crate - The root crate is the `bindgen` binary - Rust-ify the test suite, no more subprocesses! - Update Travis config to test both crates --- libbindgen/tests/headers/macro-expr-basic.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 libbindgen/tests/headers/macro-expr-basic.h (limited to 'libbindgen/tests/headers/macro-expr-basic.h') diff --git a/libbindgen/tests/headers/macro-expr-basic.h b/libbindgen/tests/headers/macro-expr-basic.h new file mode 100644 index 00000000..d2de7fdf --- /dev/null +++ b/libbindgen/tests/headers/macro-expr-basic.h @@ -0,0 +1,14 @@ +#define FOO 1 +#define BAR 4 +#define BAZ (FOO + BAR) + +#define MIN (1 << 63) + +#define BARR (1 << 0) +#define BAZZ ((1 << 1) + BAZ) +#define I_RAN_OUT_OF_DUMB_NAMES (BARR | BAZZ) + +/* I haz a comment */ +#define HAZ_A_COMMENT BARR + +#define HAZ_A_COMMENT_INSIDE (/* comment for real */ BARR + FOO) -- cgit v1.2.3