]> git.lizzy.rs Git - rust.git/blob - src/test/run-make/raw-dylib-c/extern_1.c
ab1dc3a4105b7af70e61558c6c8d325d81af3ddf
[rust.git] / src / test / run-make / raw-dylib-c / extern_1.c
1 #include <stdio.h>
2
3 __declspec(dllexport) int extern_variable = 0;
4
5 __declspec(dllexport) void extern_fn_1() {
6     printf("extern_fn_1\n");
7     fflush(stdout);
8 }
9
10 __declspec(dllexport) void extern_fn_2() {
11     printf("extern_fn_2; didn't get the rename\n");
12     fflush(stdout);
13 }
14
15 __declspec(dllexport) void print_extern_variable() {
16     printf("extern_variable value: %d\n", extern_variable);
17     fflush(stdout);
18 }
19
20 __declspec(dllexport) void extern_fn_with_long_name() {
21     printf("extern_fn_with_long_name; got the rename\n");
22     fflush(stdout);
23 }