diff options
| author | ruki <[email protected]> | 2021-10-18 22:18:01 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2021-10-18 22:18:01 +0800 |
| commit | 7214daac014811ca73103d0e8d22bdc2b1b54470 (patch) | |
| tree | e6900d93d44bcd1100f415cda6d9097ba7daf134 /tests/projects/c++/unity_build/src | |
| parent | 105117735be22a14c32d136681b5f08916625fb4 (diff) | |
add c++ unity build test
Diffstat (limited to 'tests/projects/c++/unity_build/src')
| -rw-r--r-- | tests/projects/c++/unity_build/src/bar/test4.cpp | 8 | ||||
| -rw-r--r-- | tests/projects/c++/unity_build/src/bar/test5.cpp | 8 | ||||
| -rw-r--r-- | tests/projects/c++/unity_build/src/bar/test6.cpp | 8 | ||||
| -rw-r--r-- | tests/projects/c++/unity_build/src/foo/test.cpp | 8 | ||||
| -rw-r--r-- | tests/projects/c++/unity_build/src/foo/test2.cpp | 8 | ||||
| -rw-r--r-- | tests/projects/c++/unity_build/src/header.h | 27 | ||||
| -rw-r--r-- | tests/projects/c++/unity_build/src/header2.h | 0 | ||||
| -rw-r--r-- | tests/projects/c++/unity_build/src/main.cpp | 8 | ||||
| -rw-r--r-- | tests/projects/c++/unity_build/src/test.c | 4 | ||||
| -rw-r--r-- | tests/projects/c++/unity_build/src/test7.cpp | 8 | ||||
| -rw-r--r-- | tests/projects/c++/unity_build/src/test8.cpp | 8 |
11 files changed, 95 insertions, 0 deletions
diff --git a/tests/projects/c++/unity_build/src/bar/test4.cpp b/tests/projects/c++/unity_build/src/bar/test4.cpp new file mode 100644 index 000000000..a92803eb7 --- /dev/null +++ b/tests/projects/c++/unity_build/src/bar/test4.cpp @@ -0,0 +1,8 @@ + +// main.cpp +#include "header.h" + +int test4() +{ + return 0; +} diff --git a/tests/projects/c++/unity_build/src/bar/test5.cpp b/tests/projects/c++/unity_build/src/bar/test5.cpp new file mode 100644 index 000000000..2a3e7066c --- /dev/null +++ b/tests/projects/c++/unity_build/src/bar/test5.cpp @@ -0,0 +1,8 @@ + +// main.cpp +#include "header.h" + +int test5() +{ + return 0; +} diff --git a/tests/projects/c++/unity_build/src/bar/test6.cpp b/tests/projects/c++/unity_build/src/bar/test6.cpp new file mode 100644 index 000000000..efbd7c6c1 --- /dev/null +++ b/tests/projects/c++/unity_build/src/bar/test6.cpp @@ -0,0 +1,8 @@ + +// main.cpp +#include "header.h" + +int test6() +{ + return 0; +} diff --git a/tests/projects/c++/unity_build/src/foo/test.cpp b/tests/projects/c++/unity_build/src/foo/test.cpp new file mode 100644 index 000000000..e9d6c83d9 --- /dev/null +++ b/tests/projects/c++/unity_build/src/foo/test.cpp @@ -0,0 +1,8 @@ + +// main.cpp +#include "header.h" + +int test() +{ + return 0; +} diff --git a/tests/projects/c++/unity_build/src/foo/test2.cpp b/tests/projects/c++/unity_build/src/foo/test2.cpp new file mode 100644 index 000000000..596359cd2 --- /dev/null +++ b/tests/projects/c++/unity_build/src/foo/test2.cpp @@ -0,0 +1,8 @@ + +// main.cpp +#include "header.h" + +int test2() +{ + return 0; +} diff --git a/tests/projects/c++/unity_build/src/header.h b/tests/projects/c++/unity_build/src/header.h new file mode 100644 index 000000000..affda55ca --- /dev/null +++ b/tests/projects/c++/unity_build/src/header.h @@ -0,0 +1,27 @@ +// header.h +#ifndef HEADER_H +#define HEADER_H + +#include <algorithm> +#include <deque> +#include <iostream> +#include <map> +#include <memory> +#include <set> +//#include <thread> +#include <utility> +#include <vector> +#include <string> +#include <queue> +#include <cstdlib> +#include <utility> +#include <exception> +#include <list> +#include <stack> +#include <complex> +#include <fstream> +#include <cstdio> +#include <iomanip> + +#endif + diff --git a/tests/projects/c++/unity_build/src/header2.h b/tests/projects/c++/unity_build/src/header2.h new file mode 100644 index 000000000..e69de29bb --- /dev/null +++ b/tests/projects/c++/unity_build/src/header2.h diff --git a/tests/projects/c++/unity_build/src/main.cpp b/tests/projects/c++/unity_build/src/main.cpp new file mode 100644 index 000000000..27d41ee50 --- /dev/null +++ b/tests/projects/c++/unity_build/src/main.cpp @@ -0,0 +1,8 @@ +#include "header.h" + +int main(int argc, char** argv) +{ + std::string s("xmake"); + printf("hello %s!\n", s.c_str()); + return 0; +} diff --git a/tests/projects/c++/unity_build/src/test.c b/tests/projects/c++/unity_build/src/test.c new file mode 100644 index 000000000..7f0aa2bf4 --- /dev/null +++ b/tests/projects/c++/unity_build/src/test.c @@ -0,0 +1,4 @@ + +void test_c(void) +{ +} diff --git a/tests/projects/c++/unity_build/src/test7.cpp b/tests/projects/c++/unity_build/src/test7.cpp new file mode 100644 index 000000000..24aeff619 --- /dev/null +++ b/tests/projects/c++/unity_build/src/test7.cpp @@ -0,0 +1,8 @@ + +// main.cpp +#include "header.h" + +int test7() +{ + return 0; +} diff --git a/tests/projects/c++/unity_build/src/test8.cpp b/tests/projects/c++/unity_build/src/test8.cpp new file mode 100644 index 000000000..6ad5680a6 --- /dev/null +++ b/tests/projects/c++/unity_build/src/test8.cpp @@ -0,0 +1,8 @@ + +// main.cpp +#include "header.h" + +int test8() +{ + return 0; +} |
