summaryrefslogtreecommitdiff
path: root/tests/projects/c++/linkorders/src/main.cpp
diff options
context:
space:
mode:
authorruki <[email protected]>2023-09-27 23:23:07 +0800
committerruki <[email protected]>2023-09-27 23:23:07 +0800
commit0fd951cc540635f332a7c7379a319656c82d70b4 (patch)
tree598ce4b482a87b6801dc10361f260499fd1156b2 /tests/projects/c++/linkorders/src/main.cpp
parenta7d7a3718375dc61342f283a50b297ac4ba7e007 (diff)
add link orders example
Diffstat (limited to 'tests/projects/c++/linkorders/src/main.cpp')
-rw-r--r--tests/projects/c++/linkorders/src/main.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/projects/c++/linkorders/src/main.cpp b/tests/projects/c++/linkorders/src/main.cpp
new file mode 100644
index 000000000..ed1924789
--- /dev/null
+++ b/tests/projects/c++/linkorders/src/main.cpp
@@ -0,0 +1,9 @@
+#include "foo.h"
+#include <iostream>
+
+using namespace std;
+
+int main(int argc, char** argv) {
+ cout << "add(1, 2) = " << add(1, 2) << endl;
+ return 0;
+}