aboutsummaryrefslogtreecommitdiffstats
path: root/src/glsl
diff options
context:
space:
mode:
authorMatt Turner <[email protected]>2012-11-06 15:36:15 -0800
committerMatt Turner <[email protected]>2012-11-09 14:33:08 -0800
commitc3a15d9a35b70aa5b8135605d17db0c307a0eacf (patch)
tree599139de0445ef07bb4d734f6daf7c05a5a55d89 /src/glsl
parent9ad71c44fa316314551b8540241e81b296d35f44 (diff)
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 <[email protected]>
Diffstat (limited to 'src/glsl')
-rw-r--r--src/glsl/glcpp/tests/104-hash-line-followed-by-code.c2
-rw-r--r--src/glsl/glcpp/tests/104-hash-line-followed-by-code.c.expected3
2 files changed, 5 insertions, 0 deletions
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();
+