From f04e62e6ccf752883bbd3a23cf6d62a403b6a2a9 Mon Sep 17 00:00:00 2001 From: Ivan Grokhotkov Date: Tue, 10 Jan 2017 23:45:44 +0800 Subject: [PATCH] cxx: add iostreams test Checks that libstdc++ can use newlib IO functions --- components/cxx/test/test_cxx.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/components/cxx/test/test_cxx.cpp b/components/cxx/test/test_cxx.cpp index 8b790783ed..3b653361f4 100644 --- a/components/cxx/test/test_cxx.cpp +++ b/components/cxx/test/test_cxx.cpp @@ -1,6 +1,7 @@ #include #include #include +#include #include "unity.h" #include "esp_log.h" #include "freertos/FreeRTOS.h" @@ -201,3 +202,9 @@ TEST_CASE("before scheduler has started, static initializers work correctly", "[ TEST_ASSERT_EQUAL(1, g_static_init_test3.index); TEST_ASSERT_EQUAL(2, StaticInitTestBeforeScheduler::order); } + + +TEST_CASE("can use iostreams", "[cxx]") +{ + std::cout << "hello world"; +}