瀏覽代碼

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.
tags/mesa-7.9-rc1
Carl Worth 15 年之前
父節點
當前提交
34db0d332e
共有 2 個文件被更改,包括 9 次插入0 次删除
  1. 3
    0
      tests/003-define-chain-reverse.c
  2. 6
    0
      tests/004-define-recursive.c

+ 3
- 0
tests/003-define-chain-reverse.c 查看文件

@@ -0,0 +1,3 @@
#define bar foo
#define foo 1
bar

+ 6
- 0
tests/004-define-recursive.c 查看文件

@@ -0,0 +1,6 @@
#define foo bar
#define bar baz
#define baz foo
foo
bar
baz

Loading…
取消
儲存