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