From 3471e384d1aa7082aadd1d292a41765b00e1b3e5 Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Tue, 16 Apr 2013 00:54:40 -0400 Subject: [PATCH] Added a unit test for the previous commit. --- unit_tests/preprocessor/output/if-with-embedded-parens | 7 +++++++ .../preprocessor/output/if-with-embedded-parens.correct | 1 + 2 files changed, 8 insertions(+) create mode 100644 unit_tests/preprocessor/output/if-with-embedded-parens create mode 100644 unit_tests/preprocessor/output/if-with-embedded-parens.correct diff --git a/unit_tests/preprocessor/output/if-with-embedded-parens b/unit_tests/preprocessor/output/if-with-embedded-parens new file mode 100644 index 00000000..c0fced94 --- /dev/null +++ b/unit_tests/preprocessor/output/if-with-embedded-parens @@ -0,0 +1,7 @@ +// Before hg changeset 91c22d2de774, the preprocessor incorrect thought +// that the '+' is a unary operator and would fail to parse the expression. +#if ((1) + (0) < 12) +RIGHT +#else +WRONG +#endif diff --git a/unit_tests/preprocessor/output/if-with-embedded-parens.correct b/unit_tests/preprocessor/output/if-with-embedded-parens.correct new file mode 100644 index 00000000..db561ffb --- /dev/null +++ b/unit_tests/preprocessor/output/if-with-embedded-parens.correct @@ -0,0 +1 @@ +RIGHT