summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/ObjectLibrary/exe.c
blob: 25d778498ef512166d53a92f5dbc465629060f22 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#if defined(_WIN32) && defined(COMPILE_FOR_SHARED_LIB)
#  define IMPORT __declspec(dllimport)
#else
#  define IMPORT
#endif

extern IMPORT int b(void);
int main(void)
{
  return b();
}
#ifndef REQUIRED
#  error "REQUIRED needs to be defined"
#endif