diff options
| author | ruki <[email protected]> | 2025-12-10 23:28:58 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2025-12-10 23:28:58 +0800 |
| commit | 3bd19d8c9f7ddc14bae149b582f450d900d08247 (patch) | |
| tree | ea62723c91dfbdceafa0802a58d4f64a88da8331 | |
| parent | 717cb1396d5743b63af026c336ea59b3204f6100 (diff) | |
fix tests
8 files changed, 11 insertions, 17 deletions
diff --git a/tests/projects/hybrid/static_library/src/main.cpp b/tests/projects/hybrid/static_library/src/main.cpp index effbee53a..cbdec8718 100644 --- a/tests/projects/hybrid/static_library/src/main.cpp +++ b/tests/projects/hybrid/static_library/src/main.cpp @@ -1,7 +1,6 @@ #include "test.h" - -int main(int argc, char** argv) -{ + +int main(int argc, char** argv) { test1(); #ifdef MACOSX test2(); diff --git a/tests/projects/hybrid/static_library/src/main2.cpp b/tests/projects/hybrid/static_library/src/main2.cpp index 73890bc01..237f7c319 100644 --- a/tests/projects/hybrid/static_library/src/main2.cpp +++ b/tests/projects/hybrid/static_library/src/main2.cpp @@ -1,7 +1,6 @@ #include "test.h" - -int main(int argc, char** argv) -{ + +int main(int argc, char** argv) { test5(); return 0; } diff --git a/tests/projects/hybrid/static_library/src/test1.c b/tests/projects/hybrid/static_library/src/test1.c index 8e0c1e021..9ff375333 100644 --- a/tests/projects/hybrid/static_library/src/test1.c +++ b/tests/projects/hybrid/static_library/src/test1.c @@ -1,5 +1,4 @@ #include "test.h" -void test1() -{ +void test1() { } diff --git a/tests/projects/hybrid/static_library/src/test2.m b/tests/projects/hybrid/static_library/src/test2.m index 2164a8bf5..88c8f9616 100644 --- a/tests/projects/hybrid/static_library/src/test2.m +++ b/tests/projects/hybrid/static_library/src/test2.m @@ -1,5 +1,4 @@ #include "test.h" -void test2() -{ +void test2() { } diff --git a/tests/projects/hybrid/static_library/src/test3.mm b/tests/projects/hybrid/static_library/src/test3.mm index ea33c33d5..acc6a6371 100644 --- a/tests/projects/hybrid/static_library/src/test3.mm +++ b/tests/projects/hybrid/static_library/src/test3.mm @@ -1,5 +1,4 @@ #include "test.h" -void test3() -{ +void test3() { } diff --git a/tests/projects/hybrid/static_library/src/test4.cpp b/tests/projects/hybrid/static_library/src/test4.cpp index 3cdf598a2..f9e02cf45 100644 --- a/tests/projects/hybrid/static_library/src/test4.cpp +++ b/tests/projects/hybrid/static_library/src/test4.cpp @@ -1,5 +1,4 @@ #include "test.h" -void test4() -{ +void test4() { } diff --git a/tests/projects/hybrid/static_library/src/test5.d b/tests/projects/hybrid/static_library/src/test5.d index d6519665d..c2ad9f900 100644 --- a/tests/projects/hybrid/static_library/src/test5.d +++ b/tests/projects/hybrid/static_library/src/test5.d @@ -1,5 +1,4 @@ -extern(C) int test5() -{ +extern(C) int test5() { return 5; } diff --git a/tests/projects/hybrid/static_library/xmake.lua b/tests/projects/hybrid/static_library/xmake.lua index 5d0ef1494..560343ced 100644 --- a/tests/projects/hybrid/static_library/xmake.lua +++ b/tests/projects/hybrid/static_library/xmake.lua @@ -15,10 +15,11 @@ target("demo") add_defines("MACOSX") end +--[[ target("demo2") set_kind("binary") add_files("src/main2.cpp", "src/*.d") if not is_plat("macosx") then set_enabled(false) end - +]] |
