diff options
Diffstat (limited to 'Tests/RunCMake/ObjectLibrary/LinkObjLHSShared.c')
-rw-r--r-- | Tests/RunCMake/ObjectLibrary/LinkObjLHSShared.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/Tests/RunCMake/ObjectLibrary/LinkObjLHSShared.c b/Tests/RunCMake/ObjectLibrary/LinkObjLHSShared.c new file mode 100644 index 0000000..088da30 --- /dev/null +++ b/Tests/RunCMake/ObjectLibrary/LinkObjLHSShared.c @@ -0,0 +1,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(); +} |