summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/ObjectLibrary/LinkObjLHSShared.c
blob: 088da30b14ad58eb07623d6702e2c421e46d9fb0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#ifndef REQUIRED
#  error "REQUIRED not defined"
#endif

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

IMPORT int a(void);
extern int required(void);

int main(void)
{
  return required() + a();
}