llvm.org GIT mirror llvm / release_60 test / CodeGen / NVPTX / global-ctor.ll
release_60

Tree @release_60 (Download .tar.gz)

global-ctor.ll @release_60raw · history · blame

1
2
3
4
5
6
7
8
9
; RUN: not llc < %s -march=nvptx -mcpu=sm_20 2>&1 | FileCheck %s

; Check that llc dies when given a nonempty global ctor.
@llvm.global_ctors = appending global [1 x { i32, void ()*, i8* }] [{ i32, void ()*, i8* } { i32 65535, void ()* @foo, i8* null }]

; CHECK: ERROR: Module has a nontrivial global ctor
define internal void @foo() {
  ret void
}