summaryrefslogtreecommitdiff
path: root/tests/c++_static_library/src
diff options
context:
space:
mode:
authorruki <[email protected]>2016-02-22 08:49:20 +0800
committerruki <[email protected]>2016-02-22 08:49:20 +0800
commitec6fd4eeca3fa468cffb25b472eb349c1fed06aa (patch)
tree3dbbb42e44310d8ae80ba2361a9f34bbbb90da13 /tests/c++_static_library/src
parent762f3cd87615acbed339931bfb56c2b75c44cfa0 (diff)
modify tests script
Diffstat (limited to 'tests/c++_static_library/src')
-rwxr-xr-xtests/c++_static_library/src/interface.cpp6
-rwxr-xr-xtests/c++_static_library/src/interface.h16
-rwxr-xr-xtests/c++_static_library/src/test.cpp10
3 files changed, 0 insertions, 32 deletions
diff --git a/tests/c++_static_library/src/interface.cpp b/tests/c++_static_library/src/interface.cpp
deleted file mode 100755
index 598d07560..000000000
--- a/tests/c++_static_library/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/c++_static_library/src/interface.h b/tests/c++_static_library/src/interface.h
deleted file mode 100755
index 4a41e9597..000000000
--- a/tests/c++_static_library/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/c++_static_library/src/test.cpp b/tests/c++_static_library/src/test.cpp
deleted file mode 100755
index 72e03272b..000000000
--- a/tests/c++_static_library/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;
-}