toml11/tests/test_multiple_translation_unit_1.cpp
2019-03-18 12:39:58 +09:00

12 lines
250 B
C++

#include <toml.hpp>
int read_a(const toml::table&);
int main()
{
const std::string content("a = 0");
std::istringstream iss(content);
const auto data = toml::parse(iss, "test_multiple_translation_unit.toml");
return read_a(data);
}