Unit tests for previous fix.
authorRyan C. Gordon <icculus@icculus.org>
Thu, 04 Nov 2010 16:33:26 -0400
changeset 942 61b18d72632c
parent 941 405a57d342a1
child 943 775cd2ac324b
Unit tests for previous fix.
unit_tests/preprocessor/output/elif-after-macro
unit_tests/preprocessor/output/elif-after-macro-with-args
unit_tests/preprocessor/output/elif-after-macro-with-args.correct
unit_tests/preprocessor/output/elif-after-macro.correct
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/unit_tests/preprocessor/output/elif-after-macro	Thu Nov 04 16:33:26 2010 -0400
@@ -0,0 +1,9 @@
+// This triggered an error before, when the "== D0" would not pop_source().
+#define D0 0
+#if DA == D0
+RIGHT
+#elif D5 >= D4
+WRONG
+#else
+ALSOWRONG
+#endif
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/unit_tests/preprocessor/output/elif-after-macro-with-args	Thu Nov 04 16:33:26 2010 -0400
@@ -0,0 +1,8 @@
+#define D0(x) 0
+#if DA == D0(5)
+RIGHT
+#elif D5 >= D4
+WRONG
+#else
+ALSOWRONG
+#endif
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/unit_tests/preprocessor/output/elif-after-macro-with-args.correct	Thu Nov 04 16:33:26 2010 -0400
@@ -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/elif-after-macro.correct	Thu Nov 04 16:33:26 2010 -0400
@@ -0,0 +1,1 @@
+RIGHT
\ No newline at end of file