1; RUN: llvm-as < %s > %t
2; RUN: llvm-lto -exported-symbol=_DllMain@12 -filetype=asm -o - %t | FileCheck %s
3
4target datalayout = "e-m:x-p:32:32-i64:64-f80:32-n8:16:32-a:0:32-S32"
5target triple = "i386-pc-windows-msvc19.0.23918"
6
7; CHECK: .globl _DllMain@12
8define x86_stdcallcc i32 @DllMain(i8* %module, i32 %reason, i8* %reserved) {
9  ret i32 1
10}
11