aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2010-11-04 19:48:53 +0000
committerMike Buland <eichlan@xagasoft.com>2010-11-04 19:48:53 +0000
commit2fe32ba19571ff775a55f61eca355a46f269393e (patch)
tree0acd898d44fd493315e2c52a426efb434d2a0a83 /src
parent78463c30031a478936b21168a6fc93ae6eeaaeb9 (diff)
downloadlibbu++-2fe32ba19571ff775a55f61eca355a46f269393e.tar.gz
libbu++-2fe32ba19571ff775a55f61eca355a46f269393e.tar.bz2
libbu++-2fe32ba19571ff775a55f61eca355a46f269393e.tar.xz
libbu++-2fe32ba19571ff775a55f61eca355a46f269393e.zip
FString tests, the new one causes a segfault with the old fstring.
Diffstat (limited to '')
-rw-r--r--src/unit/fstring.unit9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/unit/fstring.unit b/src/unit/fstring.unit
index 00b6eed..c6d7414 100644
--- a/src/unit/fstring.unit
+++ b/src/unit/fstring.unit
@@ -339,4 +339,13 @@ suite FString
339 a = "This is a test."; 339 a = "This is a test.";
340 unitTest( a.replace("i", "ooo") == "Thooos ooos a test." ); 340 unitTest( a.replace("i", "ooo") == "Thooos ooos a test." );
341 } 341 }
342
343 test coreDerefBug1
344 {
345 Bu::FString a, b;
346 a = "bob";
347 a.setSize( 0 );
348 b = a;
349 b.getStr();
350 }
342} 351}