summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatt Turner <mattst88@gmail.com>2012-11-06 15:36:15 -0800
committerMatt Turner <mattst88@gmail.com>2012-11-09 14:33:08 -0800
commitc3a15d9a35b70aa5b8135605d17db0c307a0eacf (patch)
tree599139de0445ef07bb4d734f6daf7c05a5a55d89
parent9ad71c44fa316314551b8540241e81b296d35f44 (diff)
downloadexternal_mesa3d-c3a15d9a35b70aa5b8135605d17db0c307a0eacf.zip
external_mesa3d-c3a15d9a35b70aa5b8135605d17db0c307a0eacf.tar.gz
external_mesa3d-c3a15d9a35b70aa5b8135605d17db0c307a0eacf.tar.bz2
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 <kenneth@whitecape.org>
-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 0000000..3fbeec4
--- /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 0000000..e89a292
--- /dev/null
+++ b/src/glsl/glcpp/tests/104-hash-line-followed-by-code.c.expected
@@ -0,0 +1,3 @@
+#line 2
+int foo();
+