From 44e4c99bf8b50abc8bb862e2bd372c67d8f52f87 Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Fri, 12 Mar 2010 09:42:24 -0500 Subject: [PATCH] Added more unit tests. --- unit_tests/preprocessor/output/macro-blank-arg | 4 ++++ unit_tests/preprocessor/output/macro-blank-arg.correct | 0 unit_tests/preprocessor/output/stringify-operator-blank-arg | 4 ++++ .../preprocessor/output/stringify-operator-blank-arg.correct | 1 + 4 files changed, 9 insertions(+) create mode 100644 unit_tests/preprocessor/output/macro-blank-arg create mode 100644 unit_tests/preprocessor/output/macro-blank-arg.correct create mode 100644 unit_tests/preprocessor/output/stringify-operator-blank-arg create mode 100644 unit_tests/preprocessor/output/stringify-operator-blank-arg.correct diff --git a/unit_tests/preprocessor/output/macro-blank-arg b/unit_tests/preprocessor/output/macro-blank-arg new file mode 100644 index 00000000..1d512226 --- /dev/null +++ b/unit_tests/preprocessor/output/macro-blank-arg @@ -0,0 +1,4 @@ +// This shouldn't produce an error (the "()" should be treated as one +// blank argument. +#define x(y) y +x() diff --git a/unit_tests/preprocessor/output/macro-blank-arg.correct b/unit_tests/preprocessor/output/macro-blank-arg.correct new file mode 100644 index 00000000..e69de29b diff --git a/unit_tests/preprocessor/output/stringify-operator-blank-arg b/unit_tests/preprocessor/output/stringify-operator-blank-arg new file mode 100644 index 00000000..00152fe9 --- /dev/null +++ b/unit_tests/preprocessor/output/stringify-operator-blank-arg @@ -0,0 +1,4 @@ +// This shouldn't produce an error (the "()" should be treated as one +// blank argument, turned into a "" +#define x(y) #y +x() diff --git a/unit_tests/preprocessor/output/stringify-operator-blank-arg.correct b/unit_tests/preprocessor/output/stringify-operator-blank-arg.correct new file mode 100644 index 00000000..3cc762b5 --- /dev/null +++ b/unit_tests/preprocessor/output/stringify-operator-blank-arg.correct @@ -0,0 +1 @@ +"" \ No newline at end of file