1 // RUN: %clang_cc1 -triple dxil-pc-shadermodel6.3-library -S -emit-llvm -disable-llvm-passes %s -o - | FileCheck %s
3 // Make sure global variable for ctors exist for lib profile.
4 // CHECK:@llvm.global_ctors
6 RWBuffer<float> Buffer;
12 // CHECK: define void @FirstEntry()
14 // CHECK-NEXT: call void @_GLOBAL__sub_I_GlobalConstructorLib.hlsl()
20 // CHECK: define void @SecondEntry()
22 // CHECK-NEXT: call void @_GLOBAL__sub_I_GlobalConstructorLib.hlsl()
23 // CHECK-NEXT: call void @"?SecondEntry@@YAXXZ"()