X-Git-Url: http://git.silmor.de/gitweb/?p=web%2Fkonrad%2Fchester.git;a=blobdiff_plain;f=tests%2Fdptrtest.cpp;fp=tests%2Fdptrtest.cpp;h=9151f7d265d56bf5c7e399908a69a629899f394f;hp=9fe66208210d4039268ba7309ae34f7abf2f91f7;hb=948744964683dec959bb3f2a9a18903bf20b8cac;hpb=403108e7d6979a8ef4dce3dd4f23341d6fb1fada diff --git a/tests/dptrtest.cpp b/tests/dptrtest.cpp index 9fe6620..9151f7d 100644 --- a/tests/dptrtest.cpp +++ b/tests/dptrtest.cpp @@ -40,6 +40,12 @@ void DPtrTest::sharedDP() QCOMPARE(o1.num(),5); QCOMPARE(o2.num(),5); QCOMPARE(o3.num(),5); + //cloning + o2=o1.clone(); + o2.setNum(6); + QCOMPARE(o1.num(),5); + QCOMPARE(o2.num(),6); + QCOMPARE(o3.num(),5); } void DPtrTest::noncopyDP()