Debian Codegraph @

clang/test/CodeGen/windows-on-arm-dllimport-dllexport.c

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