mirror of
https://github.com/boostorg/boost-ci.git
synced 2026-02-10 11:22:10 +00:00
26 lines
757 B
C++
26 lines
757 B
C++
//
|
|
// Copyright (c) 2020 Mateusz Loskot <mateusz@loskot.net>
|
|
//
|
|
// Use, modification and distribution is subject to the Boost Software License,
|
|
// Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
|
|
// http://www.boost.org/LICENSE_1_0.txt)
|
|
//
|
|
|
|
// Use some STL components just to quick check compilers
|
|
#include <string>
|
|
#include <map>
|
|
#include <vector>
|
|
// Use our dummy lib
|
|
#include <boost/boost-ci/boost_ci.hpp>
|
|
// And the usual test framwork
|
|
#include <boost/core/lightweight_test.hpp>
|
|
|
|
int main()
|
|
{
|
|
std::map<std::string, std::vector<int> > map;
|
|
map["result"].push_back(boost::boost_ci::get_answer());
|
|
BOOST_TEST_EQ(boost::boost_ci::get_answer(), 42);
|
|
BOOST_TEST_EQ(map["result"].size(), 1u);
|
|
return boost::report_errors();
|
|
}
|