Skip to content

Commit

Permalink
Add the tests used to bring the System V struct passing/returning fun…
Browse files Browse the repository at this point in the history
…ctionality.

There are:
1. Tests for passing managed struct.\
2. Tests for returning managed structs.
3. Tests for PInvoke and reverse PInvoke using callbacks and native SO.
  • Loading branch information
Lubomir Litchev committed Nov 18, 2015
1 parent f8b8641 commit 5ad2194
Show file tree
Hide file tree
Showing 10 changed files with 4,965 additions and 0 deletions.
13 changes: 13 additions & 0 deletions tests/src/JIT/Methodical/structs/systemvbringup/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
cmake_minimum_required(VERSION 2.6)
project(jitstructtests)

set(CMAKE_SHARED_LIBRARY_PREFIX "")

set(SOURCES structinregs.cpp structinregs.def)
add_library(jitstructtests_lib SHARED ${SOURCES})

# add the install targets (this "installs" the native file on Windows systems)
install(TARGETS jitstructtests_lib DESTINATION bin)

# This "installs" the native file on System V systems
set_target_properties(jitstructtests_lib PROPERTIES LIBRARY_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/structinregs)
10 changes: 10 additions & 0 deletions tests/src/JIT/Methodical/structs/systemvbringup/project.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"dependencies": {
"System.Runtime": "4.0.20-beta-23302",
"System.Runtime.InteropServices": "4.0.20-beta-23302",
"System.Console": "4.0.0-beta-23302",
},
"frameworks": {
"dnxcore50": {}
}
}
Loading

0 comments on commit 5ad2194

Please sign in to comment.