From: Matt Turner Date: Tue, 6 Nov 2012 23:36:15 +0000 (-0800) Subject: glcpp/tests: Add test to check #line followed by code X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c3a15d9a35b70aa5b8135605d17db0c307a0eacf;p=mesa.git glcpp/tests: Add test to check #line followed by code Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=51802 Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=51506 Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=41152 Reviewed-by: Kenneth Graunke --- diff --git a/src/glsl/glcpp/tests/104-hash-line-followed-by-code.c b/src/glsl/glcpp/tests/104-hash-line-followed-by-code.c new file mode 100644 index 00000000000..3fbeec48e4c --- /dev/null +++ b/src/glsl/glcpp/tests/104-hash-line-followed-by-code.c @@ -0,0 +1,2 @@ +#line 2 +int foo(); diff --git a/src/glsl/glcpp/tests/104-hash-line-followed-by-code.c.expected b/src/glsl/glcpp/tests/104-hash-line-followed-by-code.c.expected new file mode 100644 index 00000000000..e89a2926fb0 --- /dev/null +++ b/src/glsl/glcpp/tests/104-hash-line-followed-by-code.c.expected @@ -0,0 +1,3 @@ +#line 2 +int foo(); +