llvm.org GIT mirror llvm / 60ccceb test / CodeGen / NVPTX / global-ctor-empty.ll
60ccceb

Tree @60ccceb (Download .tar.gz)

global-ctor-empty.ll @60cccebraw · history · blame

1
2
3
4
5
; RUN: llc < %s -march=nvptx -mcpu=sm_20 2>&1

; Check that llc doesn't die when given an empty global ctor / dtor.
@llvm.global_ctors = appending global [0 x { i32, void ()*, i8* }] []
@llvm.global_dtors = appending global [0 x { i32, void ()*, i8* }] []