Justin Lebar | ead59f4 | 2016-01-30 01:07:38 +0000 | [diff] [blame] | 1 | ; RUN: not llc < %s -march=nvptx -mcpu=sm_20 2>&1 | FileCheck %s |
2 | |||||
3 | ; Check that llc dies when given a nonempty global ctor. | ||||
4 | @llvm.global_ctors = appending global [1 x { i32, void ()*, i8* }] [{ i32, void ()*, i8* } { i32 65535, void ()* @foo, i8* null }] | ||||
5 | |||||
6 | ; CHECK: ERROR: Module has a nontrivial global ctor | ||||
7 | define internal void @foo() { | ||||
8 | ret void | ||||
9 | } |