From 3c35a7feb3ed234ba22530d777a6a8e603ece316 Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Wed, 8 Apr 2009 23:46:14 -0400 Subject: [PATCH] Added unit test for parentheses inside a macro call. --- unit_tests/preprocessor/output/macro-paren-stacking | 3 +++ unit_tests/preprocessor/output/macro-paren-stacking.correct | 1 + 2 files changed, 4 insertions(+) create mode 100644 unit_tests/preprocessor/output/macro-paren-stacking create mode 100644 unit_tests/preprocessor/output/macro-paren-stacking.correct diff --git a/unit_tests/preprocessor/output/macro-paren-stacking b/unit_tests/preprocessor/output/macro-paren-stacking new file mode 100644 index 00000000..12ec552a --- /dev/null +++ b/unit_tests/preprocessor/output/macro-paren-stacking @@ -0,0 +1,3 @@ +/* Should give you "RIGHT" instead of an error. */ +#define a(a,b) b +a((1+1), RIGHT) diff --git a/unit_tests/preprocessor/output/macro-paren-stacking.correct b/unit_tests/preprocessor/output/macro-paren-stacking.correct new file mode 100644 index 00000000..459b9a37 --- /dev/null +++ b/unit_tests/preprocessor/output/macro-paren-stacking.correct @@ -0,0 +1 @@ +RIGHT \ No newline at end of file