summaryrefslogtreecommitdiffstats
path: root/tests/auto/qscriptstring
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/qscriptstring')
-rw-r--r--tests/auto/qscriptstring/tst_qscriptstring.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/auto/qscriptstring/tst_qscriptstring.cpp b/tests/auto/qscriptstring/tst_qscriptstring.cpp
index 91dcf40..87956f8 100644
--- a/tests/auto/qscriptstring/tst_qscriptstring.cpp
+++ b/tests/auto/qscriptstring/tst_qscriptstring.cpp
@@ -126,11 +126,15 @@ void tst_QScriptString::test()
QCOMPARE(twoInterned.toString(), two);
QVERIFY(oneInterned != twoInterned);
QVERIFY(!(oneInterned == twoInterned));
+ QScriptString copy1(oneInterned);
+ QScriptString copy2 = oneInterned;
delete eng2;
QVERIFY(!oneInterned.isValid());
QVERIFY(!twoInterned.isValid());
+ QVERIFY(!copy1.isValid());
+ QVERIFY(!copy2.isValid());
}
}