glcpp/tests: Add test to check #line followed by code
authorMatt Turner <mattst88@gmail.com>
Tue, 6 Nov 2012 23:36:15 +0000 (15:36 -0800)
committerMatt Turner <mattst88@gmail.com>
Fri, 9 Nov 2012 22:33:08 +0000 (14:33 -0800)
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>
src/glsl/glcpp/tests/104-hash-line-followed-by-code.c [new file with mode: 0644]
src/glsl/glcpp/tests/104-hash-line-followed-by-code.c.expected [new file with mode: 0644]

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 (file)
index 0000000..3fbeec4
--- /dev/null
@@ -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 (file)
index 0000000..e89a292
--- /dev/null
@@ -0,0 +1,3 @@
+#line 2
+int foo();
+