bolt/deps/llvm-18.1.8/llvm/test/Linker/appending-global-crash.ll
2025-02-14 19:21:04 +01:00

10 lines
374 B
LLVM

; 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 ptr] [ptr @var]
; CHECK-DAG: @var = appending global [1 x ptr] undef
@use = appending global [1 x ptr] [ptr @var]
@var = appending global [1 x ptr] undef