From 692f78ed03069a573cd893e191cbbf933289ddc7 Mon Sep 17 00:00:00 2001 From: Mitya Selivanov <0x7fffff@guattari.ru> Date: Mon, 15 Aug 2022 00:01:06 +0400 Subject: SZ fix --- source/test/unittests/string_ref.test.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'source/test/unittests') diff --git a/source/test/unittests/string_ref.test.c b/source/test/unittests/string_ref.test.c index b89459e..7c49996 100644 --- a/source/test/unittests/string_ref.test.c +++ b/source/test/unittests/string_ref.test.c @@ -15,3 +15,8 @@ TEST("static string wrap") { REQUIRE(ref.values[5] == 'a'); REQUIRE(ref.values[6] == 'r'); } + +TEST("string literal") { + SZ(foo, "foo"); + str_t bar = foo; +} -- cgit v1.2.3