Fix in byte output for globals.

This commit is contained in:
Christoffer Lerno
2021-08-21 22:16:35 +02:00
parent f198e6c53a
commit 7c7ee58b6b
3 changed files with 22 additions and 11 deletions

View File

@@ -6,8 +6,8 @@ char[*] foo64 = b64"SGVsbG8gV29ybGQ=";
// #expect: byte_literals.ll
@.bytes = private constant [1 x i8] c"\A0", align 1
@.bytes.5 = private constant [7 x i8] c"\00\AA\BB\CC\DD\EE\FF", align 1
@.bytes.6 = private constant [4 x i8] c"\DE\AD\BE\EF", align 1
@.bytes.7 = private constant [5 x i8] c"EI#M\ED", align 1
@.bytes.8 = private constant [11 x i8] c"Hello World", align 1
@byte_literals.foob = global [1 x i8] c"\A0", align 1
@byte_literals.fooz = global [7 x i8] c"\00\AA\BB\CC\DD\EE\FF", align 1
@byte_literals.fooy = global [4 x i8] c"\DE\AD\BE\EF", align 1
@byte_literals.foow = global [5 x i8] c"EI#M\ED", align 1
@byte_literals.foo64 = global [11 x i8] c"Hello World", align 1