diff options
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/actions/test/src/compile_1.cpp (renamed from tests/actions/test/src/compile.cpp) | 0 | ||||
| -rw-r--r-- | tests/actions/test/src/compile_2.cpp | 6 | ||||
| -rw-r--r-- | tests/actions/test/xmake.lua | 4 |
3 files changed, 8 insertions, 2 deletions
diff --git a/tests/actions/test/src/compile.cpp b/tests/actions/test/src/compile_1.cpp index adfe8588c..adfe8588c 100644 --- a/tests/actions/test/src/compile.cpp +++ b/tests/actions/test/src/compile_1.cpp diff --git a/tests/actions/test/src/compile_2.cpp b/tests/actions/test/src/compile_2.cpp new file mode 100644 index 000000000..adfe8588c --- /dev/null +++ b/tests/actions/test/src/compile_2.cpp @@ -0,0 +1,6 @@ +#include <stdio.h> + +int main(int argc, char** argv) { + static_assert(0, "error"); + return 0; +} diff --git a/tests/actions/test/xmake.lua b/tests/actions/test/xmake.lua index 83718245f..a4f75036d 100644 --- a/tests/actions/test/xmake.lua +++ b/tests/actions/test/xmake.lua @@ -16,13 +16,13 @@ end target("test_10") set_kind("binary") set_default(false) - add_files("src/compile.cpp") + add_files("src/compile_1.cpp") add_tests("compile_fail", {build_should_fail = true}) target("test_11") set_kind("binary") set_default(false) - add_files("src/compile.cpp") + add_files("src/compile_2.cpp") add_tests("compile_pass", {build_should_pass = true}) target("test_13") |
