diff options
author | Carl Worth <cworth@cworth.org> | 2010-05-20 22:27:07 -0700 |
---|---|---|
committer | Carl Worth <cworth@cworth.org> | 2010-05-20 22:27:07 -0700 |
commit | b20d33c5c6fea8e392c26e9ab060efd14034f1f9 (patch) | |
tree | 0285aa21a9c693a155d02a1b1f715137b49f494c /tests/glcpp-test | |
parent | d8327e575dd20fe696f3a44ada4bd4001b15db27 (diff) |
Implement #if, #else, #elif, and #endif with tests.
So far the only expression implemented is a single integer literal,
but obviously that's easy to extend. Various things including nesting
are tested here.
Diffstat (limited to 'tests/glcpp-test')
-rwxr-xr-x | tests/glcpp-test | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/glcpp-test b/tests/glcpp-test index 25685eeabe..022a236712 100755 --- a/tests/glcpp-test +++ b/tests/glcpp-test @@ -5,5 +5,5 @@ for test in *.c; do ../glcpp < $test > $test.out gcc -E $test -o $test.gcc grep -v '^#' < $test.gcc > $test.expected - diff -u $test.expected $test.out + diff -B -u $test.expected $test.out done |