mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 20:11:17 +00:00
22 lines
409 B
Plaintext
22 lines
409 B
Plaintext
// #target: macos-x64
|
|
fn void main()
|
|
{
|
|
char *s = "Hello\0 world!" " now";
|
|
}
|
|
|
|
/* #expect: string_escape.ll
|
|
|
|
@.str = private unnamed_addr constant [18 x i8] c"Hello\00 world! now\00", align 1
|
|
|
|
define void @string_escape.main() #0 {
|
|
entry:
|
|
%s = alloca ptr, align 8
|
|
store ptr @.str, ptr %s, align 8
|
|
ret void
|
|
}
|
|
|
|
define i32 @main(i32 %0, ptr %1) #0 {
|
|
entry:
|
|
call void @string_escape.main()
|
|
ret i32 0
|
|
} |