Added some unit tests for the preprocessor #line directive.
authorRyan C. Gordon <icculus@icculus.org>
Thu, 25 Feb 2010 11:02:26 -0500
changeset 872 5fde53b06a2e
parent 871 e72ec737ed74
child 873 bdffabea8e40
Added some unit tests for the preprocessor #line directive.
unit_tests/preprocessor/output/line-directive-filename
unit_tests/preprocessor/output/line-directive-filename.correct
unit_tests/preprocessor/output/line-directive-no-filename
unit_tests/preprocessor/output/line-directive-no-filename.correct
unit_tests/preprocessor/output/line-directive-whitespace-filename
unit_tests/preprocessor/output/line-directive-whitespace-filename.correct
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/unit_tests/preprocessor/output/line-directive-filename	Thu Feb 25 11:02:26 2010 -0500
@@ -0,0 +1,3 @@
+// This should NOT produce an error
+#line 1337 "Some_other_source_file.txt"
+RIGHT
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/unit_tests/preprocessor/output/line-directive-filename.correct	Thu Feb 25 11:02:26 2010 -0500
@@ -0,0 +1,1 @@
+RIGHT
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/unit_tests/preprocessor/output/line-directive-no-filename	Thu Feb 25 11:02:26 2010 -0500
@@ -0,0 +1,3 @@
+// This should NOT produce an error
+#line 1337
+RIGHT
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/unit_tests/preprocessor/output/line-directive-no-filename.correct	Thu Feb 25 11:02:26 2010 -0500
@@ -0,0 +1,1 @@
+RIGHT
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/unit_tests/preprocessor/output/line-directive-whitespace-filename	Thu Feb 25 11:02:26 2010 -0500
@@ -0,0 +1,3 @@
+// This should NOT produce an error
+#line 1337 "Some filename with a spaces in it.txt"
+RIGHT
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/unit_tests/preprocessor/output/line-directive-whitespace-filename.correct	Thu Feb 25 11:02:26 2010 -0500
@@ -0,0 +1,1 @@
+RIGHT
\ No newline at end of file