aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/api/testdata/link-dynamiclibs-staticlibs/main.cpp
blob: f996157e9ba44cec600624d0dc62f47c445e3b77 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#include <stdio.h>

#if defined(_WIN32) || defined(WIN32)
#   define IMPORT __declspec(dllimport)
#else
#   define IMPORT
#endif

IMPORT int dynamic1_hello();

int main()
{
    int result = dynamic1_hello();
    puts("application says hello!");
    return result;
}