diff options
author | Carl Worth <cworth@cworth.org> | 2010-05-11 12:35:06 -0700 |
---|---|---|
committer | Carl Worth <cworth@cworth.org> | 2010-05-11 12:35:06 -0700 |
commit | 34db0d332e0a1477971b7c29c18899e7264f9bce (patch) | |
tree | c2cef19e1394eaf93cb2a4671ea264dc449c27f4 | |
parent | c6d5af335121f6027cc46ef9c5aa77aa4e5906ca (diff) |
Add a couple more tests for chained #define directives.
One with the chained defines in the opposite order, and one with the
potential to trigger an infinite-loop bug through mutual
recursion. Each of these tests pass already.
-rw-r--r-- | tests/003-define-chain-reverse.c | 3 | ||||
-rw-r--r-- | tests/004-define-recursive.c | 6 |
2 files changed, 9 insertions, 0 deletions
diff --git a/tests/003-define-chain-reverse.c b/tests/003-define-chain-reverse.c new file mode 100644 index 0000000000..a18b724eca --- /dev/null +++ b/tests/003-define-chain-reverse.c @@ -0,0 +1,3 @@ +#define bar foo +#define foo 1 +bar diff --git a/tests/004-define-recursive.c b/tests/004-define-recursive.c new file mode 100644 index 0000000000..2ac56ea3dc --- /dev/null +++ b/tests/004-define-recursive.c @@ -0,0 +1,6 @@ +#define foo bar +#define bar baz +#define baz foo +foo +bar +baz |