From f94702445365cf6ecfdcc9b72fd3c5228f489fe2 Mon Sep 17 00:00:00 2001 From: Kakadu Date: Tue, 11 Oct 2022 15:47:26 +0300 Subject: [PATCH] A test about bad initialization of stringBuf in runtime Signed-off-by: Kakadu --- stdlib/regression/orig/test33.log | 2 ++ stdlib/regression/test33.lama | 5 +++++ 2 files changed, 7 insertions(+) create mode 100644 stdlib/regression/orig/test33.log create mode 100644 stdlib/regression/test33.lama diff --git a/stdlib/regression/orig/test33.log b/stdlib/regression/orig/test33.log new file mode 100644 index 000000000..35beaeee9 --- /dev/null +++ b/stdlib/regression/orig/test33.log @@ -0,0 +1,2 @@ +{}.string: 0 +{}.stringcat: diff --git a/stdlib/regression/test33.lama b/stdlib/regression/test33.lama new file mode 100644 index 000000000..8bce46926 --- /dev/null +++ b/stdlib/regression/test33.lama @@ -0,0 +1,5 @@ +import List; +import Array; + +printf ("{}.string: %s\n", {}.string); +printf ("{}.stringcat: %s\n", {}.stringcat)