diff options
Diffstat (limited to 'Tests/Jump/Executable')
-rw-r--r-- | Tests/Jump/Executable/CMakeLists.txt | 2 | ||||
-rw-r--r-- | Tests/Jump/Executable/jumpExecutable.cxx | 12 |
2 files changed, 14 insertions, 0 deletions
diff --git a/Tests/Jump/Executable/CMakeLists.txt b/Tests/Jump/Executable/CMakeLists.txt new file mode 100644 index 0000000..032c212 --- /dev/null +++ b/Tests/Jump/Executable/CMakeLists.txt @@ -0,0 +1,2 @@ +ADD_EXECUTABLE(jumpExecutable jumpExecutable.cxx) +TARGET_LINK_LIBRARIES(jumpExecutable jumpStatic jumpShared) diff --git a/Tests/Jump/Executable/jumpExecutable.cxx b/Tests/Jump/Executable/jumpExecutable.cxx new file mode 100644 index 0000000..7a050c7 --- /dev/null +++ b/Tests/Jump/Executable/jumpExecutable.cxx @@ -0,0 +1,12 @@ +#ifdef _WIN32 +# define JUMP_IMPORT __declspec(dllimport) +#else +# define JUMP_IMPORT extern +#endif + +extern int jumpStatic(); +JUMP_IMPORT int jumpShared(); +int main() +{ + return jumpShared() && jumpShared(); +} |