mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
15 lines
324 B
C
15 lines
324 B
C
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
|