summaryrefslogtreecommitdiffstats
path: root/meta-selftest/recipes-test/cpp/files/cpp-example.cpp
blob: 9889554e0cb9f6c1c25f87e795a00de09e260e9b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/*
 * Copyright OpenEmbedded Contributors
 *
 * SPDX-License-Identifier: MIT
 */

#include "cpp-example-lib.hpp"

#include <iostream>

int main()
{
    auto cpp_example = CppExample();
    std::cout << "C++ example linking " << cpp_example.get_string() << std::endl;
    std::cout << "Linking json-c version " << cpp_example.get_json_c_version() << std::endl;
    cpp_example.print_json();
    return 0;
}