aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorMichael Forney <mforney@mforney.org>2020-03-18 01:17:12 -0700
committerMichael Forney <mforney@mforney.org>2020-03-18 01:17:12 -0700
commit998d77adf854fd3f3ce630372068fd3aa1edb2c2 (patch)
tree52db359e1aa5ecd1570cfa3eb6057842c8fbfe32 /test
parentfc2da56d350ce310cb6f6c97d6643c5645c664e1 (diff)
downloadcproc-998d77adf854fd3f3ce630372068fd3aa1edb2c2.tar.xz
pp: Add test for function-like macro with no argument tokens
Diffstat (limited to 'test')
-rw-r--r--test/preprocess-macro-function-no-args.c2
-rw-r--r--test/preprocess-macro-function-no-args.pp1
2 files changed, 3 insertions, 0 deletions
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