diff --git a/tests/auto/corelib/text/qstring/tst_qstring.cpp b/tests/auto/corelib/text/qstring/tst_qstring.cpp index d54f40f114d..ca827f1e853 100644 --- a/tests/auto/corelib/text/qstring/tst_qstring.cpp +++ b/tests/auto/corelib/text/qstring/tst_qstring.cpp @@ -6685,6 +6685,12 @@ void tst_QString::arg() QCOMPARE( s4.arg(Q_UINT64_C(9223372036854775808)), // LLONG_MAX + 1 QLatin1String("[9223372036854775808]") ); + // (unscoped) enums + enum : int { FooS = -1 }; + enum : uint { FooU = 1 }; + QCOMPARE(s4.arg(FooS), QLatin1String("[-1]")); + QCOMPARE(s4.arg(FooU), QLatin1String("[1]")); + // FP overloads QCOMPARE(s4.arg(2.25), QLatin1String("[2.25]")); QCOMPARE(s4.arg(3.75f), QLatin1String("[3.75]"));