~mcf/cproc

ref: 34ae0d48e9669687003c26f94e07fa00d12dd41f cproc/test/initializer-string.qbe -rw-r--r-- 322 bytes
34ae0d48Michael Forney Add tests for char/wchar_t signedness 8 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
export data $x = align 1 { b "hello\000", }
export
function $f() {
@start.1
	%.1 =l alloc4 6
@body.2
	%.2 =l add %.1, 0
	storeb 104, %.2
	%.3 =l add %.1, 1
	storeb 101, %.3
	%.4 =l add %.1, 2
	storeb 108, %.4
	%.5 =l add %.1, 3
	storeb 108, %.5
	%.6 =l add %.1, 4
	storeb 111, %.6
	%.7 =l add %.1, 5
	storeb 0, %.7
	ret
}