From 998d77adf854fd3f3ce630372068fd3aa1edb2c2 Mon Sep 17 00:00:00 2001 From: Michael Forney Date: Wed, 18 Mar 2020 01:17:12 -0700 Subject: pp: Add test for function-like macro with no argument tokens --- test/preprocess-macro-function-no-args.c | 2 ++ test/preprocess-macro-function-no-args.pp | 1 + 2 files changed, 3 insertions(+) create mode 100644 test/preprocess-macro-function-no-args.c create mode 100644 test/preprocess-macro-function-no-args.pp (limited to 'test') diff --git a/test/preprocess-macro-function-no-args.c b/test/preprocess-macro-function-no-args.c new file mode 100644 index 0000000..6b734d5 --- /dev/null +++ b/test/preprocess-macro-function-no-args.c @@ -0,0 +1,2 @@ +#define f(x) x - 2 +f() diff --git a/test/preprocess-macro-function-no-args.pp b/test/preprocess-macro-function-no-args.pp new file mode 100644 index 0000000..c19ef04 --- /dev/null +++ b/test/preprocess-macro-function-no-args.pp @@ -0,0 +1 @@ + - 2 -- cgit v1.2.3