llvm-for-llvmta/test/Linker/appending-global-crash.ll

11 lines
430 B
LLVM
Raw Permalink Normal View History

2022-04-25 10:02:23 +02:00
; RUN: llvm-link %s -S -o - | FileCheck %s
; Check that llvm-link does not crash when materializing appending global with
; initializer depending on another appending global.
; CHECK-DAG: @use = appending global [1 x i8*] [i8* bitcast ([1 x i8*]* @var to i8*)]
; CHECK-DAG: @var = appending global [1 x i8*] undef
@use = appending global [1 x i8*] [i8* bitcast ([1 x i8*]* @var to i8*)]
@var = appending global [1 x i8*] undef