1 // RUN: %clang_cc1 -Werror -triple thumbv7-windows-itanium -mfloat-abi hard -fms-extensions -emit-llvm %s -o - | FileCheck %s
3 __declspec(dllexport
) int export_int
;
5 __declspec(dllimport
) int import_int
;
7 __declspec(dllexport
) void export_declared_function(void);
9 __declspec(dllexport
) void export_implemented_function(void) {
12 __declspec(dllimport
) void import_function(int);
14 void call_imported_function(void) {
15 export_declared_function();
16 return import_function(import_int
);
19 // CHECK: @import_int = external dllimport global i32
20 // CHECK: @export_int = dso_local dllexport global i32 0, align 4
22 // CHECK: define dso_local dllexport arm_aapcs_vfpcc void @export_implemented_function()
24 // CHECK: declare dllimport arm_aapcs_vfpcc void @import_function(i32 noundef)