[Mesa-dev] [PATCH 3/7] glcpp/tests: Add test to check #line followed by code
Matt Turner
mattst88 at gmail.com
Thu Nov 8 17:26:21 PST 2012
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
---
.../glcpp/tests/104-hash-line-followed-by-code.c | 2 ++
.../104-hash-line-followed-by-code.c.expected | 3 +++
2 files changed, 5 insertions(+), 0 deletions(-)
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 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();
+
--
1.7.8.6
More information about the mesa-dev
mailing list