瀏覽代碼

Remove "unnecessary" whitespace from some tests.

This whitespace was not part of anything being tested, and it
introduces differences (that we don't actually care about) between the
output of "gcc -E" and glcpp.

Just eliminate this extra whitespace to reduce spurious test-case
failures.
tags/mesa-7.9-rc1
Carl Worth 15 年之前
父節點
當前提交
323421db65

+ 3
- 3
tests/015-define-object-with-parens.c 查看文件

@@ -1,4 +1,4 @@
#define foo ( ) 1
#define foo ()1
foo()
#define bar () 2
bar( )
#define bar ()2
bar()

+ 1
- 1
tests/016-define-func-1-arg.c 查看文件

@@ -1,2 +1,2 @@
#define foo(x) ((x) + 1)
#define foo(x) ((x)+1)
foo(bar)

+ 1
- 1
tests/020-define-func-2-arg-multi.c 查看文件

@@ -1,2 +1,2 @@
#define foo(x,y) x, two fish, red fish, y
#define foo(x,y) x,two fish,red fish,y
foo(one fish, blue fish)

+ 2
- 2
tests/023-define-extra-whitespace.c 查看文件

@@ -3,6 +3,6 @@
# define twoargs( x , y ) x y
# define threeargs( a , b , c ) a b c
noargs ( )
onearg ( 2 )
twoargs ( 3 , 4 )
onearg ( 2 )
twoargs ( 3 , 4 )
threeargs ( 5 , 6 , 7 )

+ 1
- 1
tests/032-define-func-self-recurse.c 查看文件

@@ -1,2 +1,2 @@
#define foo(a) foo(2 * (a))
#define foo(a) foo(2*(a))
foo(3)

+ 1
- 1
tests/033-define-func-self-compose.c 查看文件

@@ -1,2 +1,2 @@
#define foo(a) foo(2 * (a))
#define foo(a) foo(2*(a))
foo(foo(3))

+ 1
- 1
tests/035-define-func-self-compose-non-func-multi-token-argument.c 查看文件

@@ -1,2 +1,2 @@
#define foo(bar) bar
foo(1 + foo)
foo(1+foo)

Loading…
取消
儲存