From 077df7145836eb86278db2ad31316841940babe4 Mon Sep 17 00:00:00 2001 From: Michael Forney Date: Sat, 23 Mar 2024 11:43:34 -0700 Subject: Change type of u8 string literals to unsigned char for C23 --- test/string-u8-type.c | 1 + test/string-u8-type.qbe | 0 2 files changed, 1 insertion(+) create mode 100644 test/string-u8-type.c create mode 100644 test/string-u8-type.qbe (limited to 'test') diff --git a/test/string-u8-type.c b/test/string-u8-type.c new file mode 100644 index 0000000..d7fe074 --- /dev/null +++ b/test/string-u8-type.c @@ -0,0 +1 @@ +_Static_assert(__builtin_types_compatible_p(__typeof__(u8"abc"), unsigned char[])); diff --git a/test/string-u8-type.qbe b/test/string-u8-type.qbe new file mode 100644 index 0000000..e69de29 -- cgit v1.2.3