summaryrefslogtreecommitdiffstats
path: root/tests/auto/corelib/tools/qbytearray/tst_qbytearray.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/corelib/tools/qbytearray/tst_qbytearray.cpp')
-rw-r--r--tests/auto/corelib/tools/qbytearray/tst_qbytearray.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/auto/corelib/tools/qbytearray/tst_qbytearray.cpp b/tests/auto/corelib/tools/qbytearray/tst_qbytearray.cpp
index 5f036f37fe..dc0c8905fd 100644
--- a/tests/auto/corelib/tools/qbytearray/tst_qbytearray.cpp
+++ b/tests/auto/corelib/tools/qbytearray/tst_qbytearray.cpp
@@ -1536,6 +1536,12 @@ void tst_QByteArray::reserve()
QVERIFY(capacity == qba.capacity());
QVERIFY(data == qba.data());
}
+
+ QByteArray nil1, nil2;
+ nil1.reserve(0);
+ nil2.squeeze();
+ nil1.squeeze();
+ nil2.reserve(0);
}
void tst_QByteArray::literals()