tst_QV4UrlObject: fix -Wtrigraph
The token sequence ??= used to be a trigraph for # until C++17 removed the concept. Clang warns about their use, though, so escape the two trigraphs in the test suite by splitting them with a pair of "". Amends6cca731f3e
. Change-Id: I455883c4ad92541941fc8fed62277c97c24170db Reviewed-by: Ulf Hermann <ulf.hermann@qt.io> (cherry picked from commit15721065e8
) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
parent
ec29b7f67b
commit
1757054ff7
|
@ -89,9 +89,10 @@ void tst_urlobject::urlObject_search_data()
|
|||
"url.search"
|
||||
<< "";
|
||||
QTest::newRow("Question mark")
|
||||
<< "var url = new URL(\"http://www.google.com/search??=?\");"
|
||||
// the embedded ""'s break trigraph sequences:
|
||||
<< "var url = new URL(\"http://www.google.com/search?""?=?\");"
|
||||
"url.search"
|
||||
<< "??=?";
|
||||
<< "?""?=?";
|
||||
QTest::newRow("equal sign")
|
||||
<< "var url = new URL(\"http://www.google.com/search?a==&b=!\");"
|
||||
"url.search"
|
||||
|
|
Loading…
Reference in New Issue