From 2fe32ba19571ff775a55f61eca355a46f269393e Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Thu, 4 Nov 2010 19:48:53 +0000 Subject: FString tests, the new one causes a segfault with the old fstring. --- src/unit/fstring.unit | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/unit/fstring.unit') 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 a = "This is a test."; unitTest( a.replace("i", "ooo") == "Thooos ooos a test." ); } + + test coreDerefBug1 + { + Bu::FString a, b; + a = "bob"; + a.setSize( 0 ); + b = a; + b.getStr(); + } } -- cgit v1.2.3