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 "".

Amends 6cca731f3e.

Change-Id: I455883c4ad92541941fc8fed62277c97c24170db
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
(cherry picked from commit 15721065e8)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
Marc Mutz 2023-06-26 10:51:16 +02:00 committed by Qt Cherry-pick Bot
parent ec29b7f67b
commit 1757054ff7
1 changed files with 3 additions and 2 deletions

View File

@ -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"