summaryrefslogtreecommitdiffstats
path: root/tests/auto/tools/qmake/testdata/rawString/main.cpp
diff options
context:
space:
mode:
authorEdward Welbourne <edward.welbourne@theqtcompany.com>2015-11-24 14:45:52 +0100
committerEdward Welbourne <edward.welbourne@theqtcompany.com>2015-12-15 09:21:27 +0000
commit214e271b93b9c9f4f52d2e56956cf5c8da9b4251 (patch)
treef40d73c9871998b3863e91bddc50b01d62ef1adf /tests/auto/tools/qmake/testdata/rawString/main.cpp
parentd47baa7236fb0c44e85c1247eedec444aefe428c (diff)
Rewrote qmake's #include-detection to be more faithful to CPP.
The C preprocessor allows backslash-newline anywhere and allows comments anywhere it allows space. Testing wilfully perverse applications of that revealed qmake's parsing of #include directives wasn't very robust. So rework to actually follow the rules and add those tests. Change-Id: If5cc7bfb65f9994e9ab9ed216dd1ee7285c63934 Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@theqtcompany.com>
Diffstat (limited to 'tests/auto/tools/qmake/testdata/rawString/main.cpp')
-rw-r--r--tests/auto/tools/qmake/testdata/rawString/main.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/auto/tools/qmake/testdata/rawString/main.cpp b/tests/auto/tools/qmake/testdata/rawString/main.cpp
index fb7008a1a9..604986666a 100644
--- a/tests/auto/tools/qmake/testdata/rawString/main.cpp
+++ b/tests/auto/tools/qmake/testdata/rawString/main.cpp
@@ -31,7 +31,8 @@
**
****************************************************************************/
-static const char raw[] = R"blah(lorem " ipsum /*)blah";
+static const char raw[] = R"blah(lorem " ipsum /*)blah"\
+;
#include <moc_object1.cpp>
int main () { return 0; }