瀏覽代碼

Add to RunCMake.Syntax test comments not separated by spaces

Extend the BracketComment5 test case to cover both bracket comments and
line comments starting immediately after a bracket comment closes.
Brad King 12 年之前
父節點
當前提交
144068e270
共有 1 個文件被更改,包括 5 次插入0 次删除
  1. 5 0
      Tests/RunCMake/Syntax/BracketComment5.cmake

+ 5 - 0
Tests/RunCMake/Syntax/BracketComment5.cmake

@@ -2,5 +2,10 @@
 message(FATAL_ERROR "This is commented out.")
 message(FATAL_ERROR "This is commented out.")
 #]] #[[
 #]] #[[
 message(FATAL_ERROR "This is commented out.")
 message(FATAL_ERROR "This is commented out.")
+#]]#[[
+message(FATAL_ERROR "This is commented out.")
 #]] #message(FATAL_ERROR "This is commented out.")
 #]] #message(FATAL_ERROR "This is commented out.")
+#[[
+message(FATAL_ERROR "This is commented out.")
+#]]#message(FATAL_ERROR "This is commented out.")
 message(STATUS "The above FATAL_ERROR did not occur.")
 message(STATUS "The above FATAL_ERROR did not occur.")