diff options
Diffstat (limited to 'tests/auto/qmake/testdata/comments/comments.pro')
-rw-r--r-- | tests/auto/qmake/testdata/comments/comments.pro | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/tests/auto/qmake/testdata/comments/comments.pro b/tests/auto/qmake/testdata/comments/comments.pro new file mode 100644 index 0000000..5f1ac08 --- /dev/null +++ b/tests/auto/qmake/testdata/comments/comments.pro @@ -0,0 +1,33 @@ +LIST = 1 2 3 4 #a comment +!equals( LIST, 1 2 3 4 ) { + message( "FAILED: inline comment" ) +} + +LIST = 1 \ + 2 \ +# 3 \ + 4 +!equals( LIST, 1 2 4 ) { + message( "FAILED: commented out continuation" ) +} + +LIST = 1 \ + 2 \#comment + 3 \ + 4 +!equals( LIST, 1 2 3 4 ) { + message( "FAILED: comment at end of continuation") +} + + +LIST = 1 2 3 4#comment +!equals( LIST, 1 2 3 4 ) { + message( "FAILED: no space before comment" ) +} + +LIST = 1 2 3 4$${LITERAL_HASH}five +!equals( LIST, 1 2 3 4$${LITERAL_HASH}five ) { + message( "FAILED: using LITERAL_HASH" ) +} + + |