bolt/deps/llvm-18.1.8/llvm/test/CodeGen/NVPTX/global-dtor.ll
2025-02-14 19:21:04 +01:00

9 lines
343 B
LLVM

; RUN: not --crash llc < %s -march=nvptx -mcpu=sm_20 2>&1 | FileCheck %s
; Check that llc dies when given a nonempty global dtor.
@llvm.global_dtors = appending global [1 x { i32, ptr, ptr }] [{ i32, ptr, ptr } { i32 65535, ptr @foo, ptr null }]
; CHECK: ERROR: Module has a nontrivial global dtor
define internal void @foo() {
ret void
}