diff options
author | Carl Worth <cworth@cworth.org> | 2010-05-25 14:52:43 -0700 |
---|---|---|
committer | Carl Worth <cworth@cworth.org> | 2010-05-25 14:52:43 -0700 |
commit | 808401fd79eea9fa2c965f9f235a753c0cb0d920 (patch) | |
tree | fb10baace89ff1d1c9191465795eeff18ca0e588 /tests | |
parent | 80dc60b9c3529cf438948d50b9619e8af2fad880 (diff) |
Store parsed tokens as token list and print all text lines.
Still not doing any macro expansion just yet. But it should be fairly
easy from here.
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/glcpp-test | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/glcpp-test b/tests/glcpp-test index 868b03cce8..34cca88330 100755 --- a/tests/glcpp-test +++ b/tests/glcpp-test @@ -7,6 +7,7 @@ for test in *.c; do echo "Testing $test" ../glcpp < $test > $test.out gcc -E $test -o $test.gcc - grep -v '^#' < $test.gcc > $test.expected -# diff -B -u $test.expected $test.out +# grep -v '^#' < $test.gcc > $test.expected + grep -v '^[ ]*#' < $test > $test.expected + diff -w -u $test.expected $test.out done |