aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/blackbox/testdata/symbolLinkMode/main.cpp
blob: 8014916347d206fd3e86b1cde529a72361a10fb3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
extern WEAK_IMPORT int somefunction();
extern void indirect();

#include <stdio.h>

int main()
{
    printf("meow\n");
    if (&somefunction != nullptr)
        printf("somefunction existed and it returned %d\n", somefunction());
    else
        printf("somefunction did not exist\n");
#if SHOULD_INSTALL_LIB
    indirect();
#endif
    return 0;
}