diff options
| author | ruki <[email protected]> | 2017-05-19 21:30:30 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2017-05-19 21:32:13 +0800 |
| commit | 03b7d8b955d11895cc15332360eca7b14d6cf58f (patch) | |
| tree | 4aa9b47aa3f1957a0a4343e7b1c4a8357e7018d5 /tests/static_library_c++/src | |
| parent | 58e3bad5859530c8316de4b4b7939169cdd2c492 (diff) | |
add projects and modules in tests
Diffstat (limited to 'tests/static_library_c++/src')
| -rwxr-xr-x | tests/static_library_c++/src/interface.cpp | 6 | ||||
| -rwxr-xr-x | tests/static_library_c++/src/interface.h | 16 | ||||
| -rwxr-xr-x | tests/static_library_c++/src/test.cpp | 10 |
3 files changed, 0 insertions, 32 deletions
diff --git a/tests/static_library_c++/src/interface.cpp b/tests/static_library_c++/src/interface.cpp deleted file mode 100755 index 598d07560..000000000 --- a/tests/static_library_c++/src/interface.cpp +++ /dev/null @@ -1,6 +0,0 @@ -#include "interface.h" - -int add(int a, int b) -{ - return a + b; -} diff --git a/tests/static_library_c++/src/interface.h b/tests/static_library_c++/src/interface.h deleted file mode 100755 index 4a41e9597..000000000 --- a/tests/static_library_c++/src/interface.h +++ /dev/null @@ -1,16 +0,0 @@ -#ifdef __cplusplus -extern "C" { -#endif - -/*! calculate add(a, b) - * - * @param a the first argument - * @param b the second argument - * - * @return the result - */ -int add(int a, int b); - -#ifdef __cplusplus -} -#endif diff --git a/tests/static_library_c++/src/test.cpp b/tests/static_library_c++/src/test.cpp deleted file mode 100755 index 72e03272b..000000000 --- a/tests/static_library_c++/src/test.cpp +++ /dev/null @@ -1,10 +0,0 @@ -#include "interface.h" -#include <iostream> - -using namespace std; - -int main(int argc, char** argv) -{ - cout << "add(1, 2) = " << add(1, 2) << endl; - return 0; -} |
