diff options
author | Edward Welbourne <edward.welbourne@qt.io> | 2022-06-13 17:10:44 +0200 |
---|---|---|
committer | Edward Welbourne <edward.welbourne@qt.io> | 2022-06-17 00:05:53 +0200 |
commit | cfcbf38f76e0073aa939be0d85b9787805c9332b (patch) | |
tree | a605afc9901bdf4bdd58b86af9d98d2d6d96b1b3 /tests/auto/tools/qmake/testdata/findMocs/findMocs.pro | |
parent | 077eddb3e1aaba1517d67e7c83574c16e971dc67 (diff) |
Teach qmake about digit-grouping apostrophes in numeric literals
It was previously understanding them as character literal delimiters,
with unfortunate consequences if a numeric literal contained an odd
number of them. Recognize that an apostrophe with a digit on each side
of it isn't the opening quote of a character literal (unless the digit
before it is preceded by a u). Extend the findMocs test to trigger the
bug, prior to the fix; verified it passes with the fix.
Fixes: QTBUG-98845
Change-Id: I5db3ac59aaeade7c2d6c1fb680ba97261ec0e8a9
Reviewed-by: Jörg Bornemann <joerg.bornemann@qt.io>
Diffstat (limited to 'tests/auto/tools/qmake/testdata/findMocs/findMocs.pro')
-rw-r--r-- | tests/auto/tools/qmake/testdata/findMocs/findMocs.pro | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/auto/tools/qmake/testdata/findMocs/findMocs.pro b/tests/auto/tools/qmake/testdata/findMocs/findMocs.pro index af672c2621..de2fdff3d2 100644 --- a/tests/auto/tools/qmake/testdata/findMocs/findMocs.pro +++ b/tests/auto/tools/qmake/testdata/findMocs/findMocs.pro @@ -1,5 +1,6 @@ DESTDIR = ./ HEADERS += object1.h object2.h object3.h object4.h \ - object5.h object6.h object7.h object8.h object9.h + object5.h object6.h object7.h object8.h object9.h \ + digitseparated.h SOURCES += main.cpp |