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

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

IMPORT void dynamic2_hello();

void TestMe::hello() const
{
    dynamic2_hello();
    puts("static2 says hello!");
}