1*9880d681SAndroid Build Coastguard Worker; RUN: not llc < %s -march=nvptx -mcpu=sm_20 2>&1 | FileCheck %s 2*9880d681SAndroid Build Coastguard Worker 3*9880d681SAndroid Build Coastguard Worker; Check that llc dies when given a nonempty global dtor. 4*9880d681SAndroid Build Coastguard Worker@llvm.global_dtors = appending global [1 x { i32, void ()*, i8* }] [{ i32, void ()*, i8* } { i32 65535, void ()* @foo, i8* null }] 5*9880d681SAndroid Build Coastguard Worker 6*9880d681SAndroid Build Coastguard Worker; CHECK: ERROR: Module has a nontrivial global dtor 7*9880d681SAndroid Build Coastguard Workerdefine internal void @foo() { 8*9880d681SAndroid Build Coastguard Worker ret void 9*9880d681SAndroid Build Coastguard Worker} 10