Added unit test for better coverage of bug I just fixed.
authorRyan C. Gordon <icculus@icculus.org>
Fri, 26 Feb 2010 02:37:01 -0500
changeset 874 24cf91180d22
parent 873 bdffabea8e40
child 875 dc28354d576e
Added unit test for better coverage of bug I just fixed.
unit_tests/preprocessor/output/macro-arg-overrides-define
unit_tests/preprocessor/output/macro-arg-overrides-define.correct
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/unit_tests/preprocessor/output/macro-arg-overrides-define	Fri Feb 26 02:37:01 2010 -0500
@@ -0,0 +1,5 @@
+// This should produce THIS_IS_THE_MACRO_ARG and not THIS_IS_THE_DEFINE.
+#define x THIS_IS_THE_DEFINE
+#define b(x) x
+#define z(x) b(x)
+z(THIS_IS_THE_MACRO_ARG)
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/unit_tests/preprocessor/output/macro-arg-overrides-define.correct	Fri Feb 26 02:37:01 2010 -0500
@@ -0,0 +1,1 @@
+THIS_IS_THE_MACRO_ARG
\ No newline at end of file