]> granicus.if.org Git - esp-idf/commitdiff
cxx: add iostreams test
authorIvan Grokhotkov <igrokhotkov@gmail.com>
Tue, 10 Jan 2017 15:45:44 +0000 (23:45 +0800)
committerIvan Grokhotkov <igrokhotkov@gmail.com>
Wed, 11 Jan 2017 07:03:14 +0000 (15:03 +0800)
Checks that libstdc++ can use newlib IO functions

components/cxx/test/test_cxx.cpp

index 8b790783ed0dbb3ca131722d313046e31ad895e5..3b653361f457d2b7f383e1c8c2b578f11d964239 100644 (file)
@@ -1,6 +1,7 @@
 #include <functional>
 #include <vector>
 #include <algorithm>
+#include <iostream>
 #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";
+}