Przeglądaj źródła

cxx: add iostreams test

Checks that libstdc++ can use newlib IO functions
Ivan Grokhotkov 9 lat temu
rodzic
commit
f04e62e6cc
1 zmienionych plików z 7 dodań i 0 usunięć
  1. 7 0
      components/cxx/test/test_cxx.cpp

+ 7 - 0
components/cxx/test/test_cxx.cpp

@@ -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";
+}