diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/CMakeLists.txt | 2 | ||||
-rw-r--r-- | tests/vk_icd.c | 4 | ||||
-rw-r--r-- | tests/vk_layer.c | 4 |
3 files changed, 5 insertions, 5 deletions
diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index 6b3181e..8af9447 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -34,7 +34,7 @@ if (MSVC) endif() # vk_icd.h -add_executable(vk_icd vk_icd.c) +add_library(vk_icd MODULE vk_icd.c) target_link_libraries(vk_icd PRIVATE Vulkan::Headers) # vk_layer.h diff --git a/tests/vk_icd.c b/tests/vk_icd.c index de29d36..48f5ef8 100644 --- a/tests/vk_icd.c +++ b/tests/vk_icd.c @@ -8,7 +8,7 @@ #include "vulkan/vk_icd.h" -int main() +int square(int i) { - return 0; + return i * i; } diff --git a/tests/vk_layer.c b/tests/vk_layer.c index 490beb3..a87e324 100644 --- a/tests/vk_layer.c +++ b/tests/vk_layer.c @@ -8,7 +8,7 @@ #include "vulkan/vk_layer.h" -int foobar() +int square(int i) { - return 0; + return i * i; } |