Files
c3c/test/test_suite/strings/string_escape.c3t
Christoffer Lerno 2778adbcb9 Fix bug #208
2021-07-18 18:53:00 +02:00

15 lines
313 B
Plaintext

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