diff options
Diffstat (limited to 'Tests/RunCMake/ObjectLibrary/exe.c')
-rw-r--r-- | Tests/RunCMake/ObjectLibrary/exe.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/Tests/RunCMake/ObjectLibrary/exe.c b/Tests/RunCMake/ObjectLibrary/exe.c new file mode 100644 index 000000000..2e08700c3 --- /dev/null +++ b/Tests/RunCMake/ObjectLibrary/exe.c @@ -0,0 +1,14 @@ +#if defined(_WIN32) && defined(COMPILE_FOR_SHARED_LIB) +# define IMPORT __declspec(dllimport) +#else +# define IMPORT +#endif + +extern IMPORT int b(void); +int main() +{ + return b(); +} +#ifndef REQUIRED +# error "REQUIRED needs to be defined" +#endif |