diff options
Diffstat (limited to 'meta-selftest/recipes-test/cpp/files/cpp-example.cpp')
| -rw-r--r-- | meta-selftest/recipes-test/cpp/files/cpp-example.cpp | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/meta-selftest/recipes-test/cpp/files/cpp-example.cpp b/meta-selftest/recipes-test/cpp/files/cpp-example.cpp new file mode 100644 index 0000000000..9889554e0c --- /dev/null +++ b/meta-selftest/recipes-test/cpp/files/cpp-example.cpp | |||
| @@ -0,0 +1,18 @@ | |||
| 1 | /* | ||
| 2 | * Copyright OpenEmbedded Contributors | ||
| 3 | * | ||
| 4 | * SPDX-License-Identifier: MIT | ||
| 5 | */ | ||
| 6 | |||
| 7 | #include "cpp-example-lib.hpp" | ||
| 8 | |||
| 9 | #include <iostream> | ||
| 10 | |||
| 11 | int main() | ||
| 12 | { | ||
| 13 | auto cpp_example = CppExample(); | ||
| 14 | std::cout << "C++ example linking " << cpp_example.get_string() << std::endl; | ||
| 15 | std::cout << "Linking json-c version " << cpp_example.get_json_c_version() << std::endl; | ||
| 16 | cpp_example.print_json(); | ||
| 17 | return 0; | ||
| 18 | } | ||
