blob: a57161890c82a969013dd7a7ae22622e41883c24 [file] [edit]
// RUN: cir-translate -cir-to-llvmir --disable-cc-lowering -o %t.ll %s
// RUN: FileCheck -check-prefix=LLVM --input-file=%t.ll %s
!s32i = !cir.int<s, 32>
module {
cir.global external @poison_array = #cir.const_array<[#cir.poison : !s32i, #cir.poison : !s32i, #cir.poison : !s32i]> : !cir.array<!s32i x 3>
// LLVM: @poison_array = global [3 x i32] poison
cir.func @lower_poison() -> !s32i {
%0 = cir.const #cir.poison : !s32i
cir.return %0 : !s32i
}
// LLVM-LABEL: @lower_poison
// LLVM-NEXT: ret i32 poison
// LLVM-NEXT: }
}