diff options
author | Emilio Cobos Álvarez <ecoal95@gmail.com> | 2016-11-06 14:36:47 +0100 |
---|---|---|
committer | Emilio Cobos Álvarez <ecoal95@gmail.com> | 2016-11-08 20:55:42 +0100 |
commit | e22a11b4d8d37ff1ed850fd596a0110b433907ee (patch) | |
tree | 36a8d15a33bcfcfecafc8daa835c062403c2a3ec /tests/headers/macro-expr-basic.h | |
parent | 7fe40e0cf92df36219308406dcb4130a848fb6f6 (diff) |
Parse macros with cexpr.
Diffstat (limited to 'tests/headers/macro-expr-basic.h')
-rw-r--r-- | tests/headers/macro-expr-basic.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/headers/macro-expr-basic.h b/tests/headers/macro-expr-basic.h new file mode 100644 index 00000000..55b11367 --- /dev/null +++ b/tests/headers/macro-expr-basic.h @@ -0,0 +1,12 @@ +#define FOO 1 +#define BAR 4 +#define BAZ (FOO + BAR) + +#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) |