mirror of
https://github.com/apple/swift.git
synced 2026-02-27 18:26:24 +01:00
24 lines
842 B
Plaintext
24 lines
842 B
Plaintext
// First parse this and then emit a *.sib. Then read in the *.sib, then recreate
|
|
// RUN: %empty-directory(%t)
|
|
// RUN: %target-sil-opt %s -emit-sib -o %t/tmp.sib -module-name literals
|
|
// RUN: %target-sil-opt %t/tmp.sib -o %t/tmp.2.sib -module-name literals
|
|
// RUN: %target-sil-opt %t/tmp.2.sib -module-name literals | %FileCheck %s
|
|
|
|
sil_stage canonical
|
|
|
|
sil [serialized] @test : $@convention(thin) () -> () {
|
|
bb0:
|
|
// CHECK: string_literal utf8 "\u{0B}"
|
|
%1 = string_literal utf8 "\u{0B}"
|
|
// CHECK: string_literal bytes "ABCD"
|
|
%4 = string_literal bytes "ABCD"
|
|
// CHECK: string_literal oslog "os log section"
|
|
%5 = string_literal oslog "os log section"
|
|
// CHECK: string_literal utf8 "abc\0def"
|
|
%6 = string_literal utf8 "abc\0def"
|
|
// CHECK: string_literal utf8 "xyz\0"
|
|
%7 = string_literal utf8 "xyz\0"
|
|
%8 = tuple ()
|
|
return %8 : $()
|
|
}
|