[Mesa-dev] [PATCH 2/2] glcpp: Add "make check" test for comment-parsing bug

Carl Worth cworth at cworth.org
Wed Jan 29 14:20:32 PST 2014


This is the innocent-looking but killer test case to verify the bug fixed in
the preceding commit.
---
 src/glsl/glcpp/tests/121-comment-bug-72686.c          | 2 ++
 src/glsl/glcpp/tests/121-comment-bug-72686.c.expected | 3 +++
 2 files changed, 5 insertions(+)
 create mode 100644 src/glsl/glcpp/tests/121-comment-bug-72686.c
 create mode 100644 src/glsl/glcpp/tests/121-comment-bug-72686.c.expected

diff --git a/src/glsl/glcpp/tests/121-comment-bug-72686.c b/src/glsl/glcpp/tests/121-comment-bug-72686.c
new file mode 100644
index 0000000..67ebe73
--- /dev/null
+++ b/src/glsl/glcpp/tests/121-comment-bug-72686.c
@@ -0,0 +1,2 @@
+/*
+ */ //
diff --git a/src/glsl/glcpp/tests/121-comment-bug-72686.c.expected b/src/glsl/glcpp/tests/121-comment-bug-72686.c.expected
new file mode 100644
index 0000000..402a763
--- /dev/null
+++ b/src/glsl/glcpp/tests/121-comment-bug-72686.c.expected
@@ -0,0 +1,3 @@
+  
+
+
-- 
1.8.5.2



More information about the mesa-dev mailing list