diff options
| author | ruki <[email protected]> | 2021-01-10 00:26:59 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2021-01-10 00:26:59 +0800 |
| commit | 16b51323f32c8951c49f7637c1038d5ee841dbe1 (patch) | |
| tree | 9a04827d67e072cf97d86c35cea44f7678e4ff97 | |
| parent | 9fbfabf98e26ef00b1153fb85825b16b7030f04b (diff) | |
improve add_defines test
| -rw-r--r-- | tests/apis/add_defines/src/main.cpp | 3 | ||||
| -rw-r--r-- | tests/apis/add_defines/xmake.lua | 3 |
2 files changed, 6 insertions, 0 deletions
diff --git a/tests/apis/add_defines/src/main.cpp b/tests/apis/add_defines/src/main.cpp index f782758d2..d16b296dc 100644 --- a/tests/apis/add_defines/src/main.cpp +++ b/tests/apis/add_defines/src/main.cpp @@ -7,5 +7,8 @@ int main(int argc, char** argv) cout << TEST1 << endl; cout << TEST2 << endl; cout << TEST3 << endl; + cout << TEST4 << endl; + cout << TEST5 << endl; + cout << TEST6 << endl; return 0; } diff --git a/tests/apis/add_defines/xmake.lua b/tests/apis/add_defines/xmake.lua index 7c35e4995..baf9f081a 100644 --- a/tests/apis/add_defines/xmake.lua +++ b/tests/apis/add_defines/xmake.lua @@ -6,3 +6,6 @@ target("add_defines") add_defines("TEST1=\"hello\"") add_defines("TEST2=\"hello xmake\"") add_defines("TEST3=3") + add_cxflags("-DTEST4=\"hello\"") + add_cxflags("-DTEST5=\"hello xmake\"") + add_cxflags("-DTEST6=3") |
