From 56c448b4b7f09fbe07631663c81e54a641518fc3 Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Thu, 25 Feb 2010 11:02:26 -0500 Subject: [PATCH] Added some unit tests for the preprocessor #line directive. --- unit_tests/preprocessor/output/line-directive-filename | 3 +++ unit_tests/preprocessor/output/line-directive-filename.correct | 1 + unit_tests/preprocessor/output/line-directive-no-filename | 3 +++ .../preprocessor/output/line-directive-no-filename.correct | 1 + .../preprocessor/output/line-directive-whitespace-filename | 3 +++ .../output/line-directive-whitespace-filename.correct | 1 + 6 files changed, 12 insertions(+) create mode 100644 unit_tests/preprocessor/output/line-directive-filename create mode 100644 unit_tests/preprocessor/output/line-directive-filename.correct create mode 100644 unit_tests/preprocessor/output/line-directive-no-filename create mode 100644 unit_tests/preprocessor/output/line-directive-no-filename.correct create mode 100644 unit_tests/preprocessor/output/line-directive-whitespace-filename create mode 100644 unit_tests/preprocessor/output/line-directive-whitespace-filename.correct diff --git a/unit_tests/preprocessor/output/line-directive-filename b/unit_tests/preprocessor/output/line-directive-filename new file mode 100644 index 00000000..1195e063 --- /dev/null +++ b/unit_tests/preprocessor/output/line-directive-filename @@ -0,0 +1,3 @@ +// This should NOT produce an error +#line 1337 "Some_other_source_file.txt" +RIGHT diff --git a/unit_tests/preprocessor/output/line-directive-filename.correct b/unit_tests/preprocessor/output/line-directive-filename.correct new file mode 100644 index 00000000..459b9a37 --- /dev/null +++ b/unit_tests/preprocessor/output/line-directive-filename.correct @@ -0,0 +1 @@ +RIGHT \ No newline at end of file diff --git a/unit_tests/preprocessor/output/line-directive-no-filename b/unit_tests/preprocessor/output/line-directive-no-filename new file mode 100644 index 00000000..42ea6f45 --- /dev/null +++ b/unit_tests/preprocessor/output/line-directive-no-filename @@ -0,0 +1,3 @@ +// This should NOT produce an error +#line 1337 +RIGHT diff --git a/unit_tests/preprocessor/output/line-directive-no-filename.correct b/unit_tests/preprocessor/output/line-directive-no-filename.correct new file mode 100644 index 00000000..459b9a37 --- /dev/null +++ b/unit_tests/preprocessor/output/line-directive-no-filename.correct @@ -0,0 +1 @@ +RIGHT \ No newline at end of file diff --git a/unit_tests/preprocessor/output/line-directive-whitespace-filename b/unit_tests/preprocessor/output/line-directive-whitespace-filename new file mode 100644 index 00000000..4abb34e9 --- /dev/null +++ b/unit_tests/preprocessor/output/line-directive-whitespace-filename @@ -0,0 +1,3 @@ +// This should NOT produce an error +#line 1337 "Some filename with a spaces in it.txt" +RIGHT diff --git a/unit_tests/preprocessor/output/line-directive-whitespace-filename.correct b/unit_tests/preprocessor/output/line-directive-whitespace-filename.correct new file mode 100644 index 00000000..459b9a37 --- /dev/null +++ b/unit_tests/preprocessor/output/line-directive-whitespace-filename.correct @@ -0,0 +1 @@ +RIGHT \ No newline at end of file