From 9b519191edeb66b8aba20829ec937ea138daac9c Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jarkko=20P=C3=B6yry?= Date: Thu, 12 Mar 2015 14:55:42 -0700 Subject: [PATCH] Add "backslash in a comment" preprocessor tests. Bug: 19699823 Change-Id: Iadf7aa0f08f0a7a9b5bb01b92121812591628b11 --- data/gles3/shaders/preprocessor.test | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/data/gles3/shaders/preprocessor.test b/data/gles3/shaders/preprocessor.test index bee7011..ed5e1f9 100644 --- a/data/gles3/shaders/preprocessor.test +++ b/data/gles3/shaders/preprocessor.test @@ -800,6 +800,39 @@ group comments "Comment Tests" "" end + case backslash_in_a_comment_1 + version 300 es + expect build_successful + both "" + #version 300 es + // \\note these are some declarations + precision mediump float; + ${DECLARATIONS} + // \\note this is the main function + void main() + { + // \\note this is a function body + ${OUTPUT} + } + "" + end + + case backslash_in_a_comment_2 + version 300 es + expect build_successful + both "" + #version 300 es + /* \\note these are some declarations */ + precision mediump float; + ${DECLARATIONS} + /* \\note this is the main function */ + void main() + { + /* \\note this is a function body */ + ${OUTPUT} + } + "" + end end # comments group line_continuation "Line Continuation Tests" -- 2.7.4