From c3a15d9a35b70aa5b8135605d17db0c307a0eacf Mon Sep 17 00:00:00 2001 From: Matt Turner Date: Tue, 6 Nov 2012 15:36:15 -0800 Subject: [PATCH] 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 --- src/glsl/glcpp/tests/104-hash-line-followed-by-code.c | 2 ++ src/glsl/glcpp/tests/104-hash-line-followed-by-code.c.expected | 3 +++ 2 files changed, 5 insertions(+) create mode 100644 src/glsl/glcpp/tests/104-hash-line-followed-by-code.c create mode 100644 src/glsl/glcpp/tests/104-hash-line-followed-by-code.c.expected 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(); + -- 2.30.2