Files
c3c/test/test_suite/strings/string_escape.c3t

15 lines
324 B
Plaintext

func void main()
{
char *s = "Hello\0 world!" " now";
}
// #expect: string_escape.ll
@.str = private constant [18 x i8] c"Hello\00 world! now\00", align 1
define void @main()
entry:
%s = alloca i8*, align 8
store i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i32 0, i32 0), i8** %s, align 8
ret void