From 2a9e791fdeb45080a98042d41c153ea19c17caae Mon Sep 17 00:00:00 2001 From: Carl Worth Date: Mon, 23 Aug 2010 09:26:44 -0700 Subject: 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 | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 src/glsl/glcpp/tests/091-hash-line.c (limited to 'src/glsl/glcpp/tests/091-hash-line.c') diff --git a/src/glsl/glcpp/tests/091-hash-line.c b/src/glsl/glcpp/tests/091-hash-line.c new file mode 100644 index 00000000000..fea35d37b05 --- /dev/null +++ b/src/glsl/glcpp/tests/091-hash-line.c @@ -0,0 +1,8 @@ +#line 0 +#error line 0 error +#line 25 +#error line 25 error +#line 0 1 +#error source 1, line 0 error +#line 30 2 +#error source 2, line 30 error -- cgit v1.2.3