Merge topic 'cmake-syntax-test-escaped-comment'

8640e52 Add to RunCMake.Syntax test \-escape cases
144068e Add to RunCMake.Syntax test comments not separated by spaces
This commit is contained in:
Brad King 2013-10-30 10:25:32 -04:00 committed by CMake Topic Stage
commit 6e900fbe69
4 changed files with 12 additions and 0 deletions

View File

@ -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(STATUS "The above FATAL_ERROR did not occur.")

View File

@ -0,0 +1,3 @@
^\\##\[\[#\]\]#\[\[\]\]x#\\"
\$\@\^\\; \(\)#\\"
\$\@\^; \(\)$

View File

@ -0,0 +1,3 @@
message([[\#]] \#[[ \#]] "#[[]]" x#comment
"\#\\\"\n\$\@\^\;\ \t\(\)"#comment
\#\\\"\n\$\@\^\;\ \t\(\))

View File

@ -39,6 +39,7 @@ run_cmake(BracketNoSpace2)
run_cmake(BracketNoSpace3)
run_cmake(BracketNoSpace4)
run_cmake(BracketNoSpace5)
run_cmake(Escape1)
run_cmake(ParenNoSpace0)
run_cmake(ParenNoSpace1)
run_cmake(ParenNoSpace2)