1 ; RUN: opt -S -mtriple=amdgcn-- -amdgpu-lower-ctor-dtor < %s | FileCheck %s
2 ; RUN: llc -mtriple=amdgcn-amd-amdhsa -mcpu=gfx700 -filetype=obj -o - < %s | llvm-readelf -s - 2>&1 | FileCheck %s
4 @llvm.global_ctors = appending global [0 x { i32, ptr, ptr }] zeroinitializer
5 @llvm.global_dtors = appending global [0 x { i32, ptr, ptr }] zeroinitializer
7 ; No amdgpu_kernels emitted for empty global_ctors
8 ; CHECK-NOT: amdgcn.device.init
9 ; CHECK-NOT: amdgcn.device.fini