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

#if defined(_WIN32) || defined(WIN32)
#   define EXPORT __declspec(dllexport)
#else
#   define EXPORT __attribute__((visibility("default")))
#endif

EXPORT void dynamic2_hello()
{
    TestMe tm;
    tm.hello();
    puts("dynamic2 says hello!");
}