glcpp: Add new test for #line directive.
authorCarl Worth <cworth@cworth.org>
Mon, 23 Aug 2010 16:26:44 +0000 (09:26 -0700)
committerCarl Worth <cworth@cworth.org>
Mon, 23 Aug 2010 17:48:10 +0000 (10:48 -0700)
commit2a9e791fdeb45080a98042d41c153ea19c17caae
tree233a55f1b79779fed9a1e66391547684e41d639c
parentc15f04b326aafc27aa2e508ab88bf209c829abd7
glcpp: Add new test for #line directive.

This test exposes two current bugs:

1. The source number is not being correctly emitted in error
   messages (instead, it's always 0).

2. A directive of "#line 0" is resulting in the following
   parse error:

preprocessor error: Invalid tokens after #
src/glsl/glcpp/tests/091-hash-line.c [new file with mode: 0644]
src/glsl/glcpp/tests/091-hash-line.c.expected [new file with mode: 0644]