[libcxx-commits] [PATCH] D63289: [libc++] Add missing #include in tests

Mikhail Maltsev via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Thu Jun 13 10:45:26 PDT 2019


miyuki created this revision.
miyuki added reviewers: ldionne, mclow.lists.
Herald added a reviewer: EricWF.
Herald added subscribers: dexonsmith, christof.
Herald added a project: libc++.

The tests that use 'FILE' must include <stdio.h> or <cstdio>,
otherwise they will fail on some platforms.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D63289

Files:
  libcxx/test/std/depr/depr.c.headers/wchar_h.pass.cpp
  libcxx/test/std/strings/c.strings/cwchar.pass.cpp


Index: libcxx/test/std/strings/c.strings/cwchar.pass.cpp
===================================================================
--- libcxx/test/std/strings/c.strings/cwchar.pass.cpp
+++ libcxx/test/std/strings/c.strings/cwchar.pass.cpp
@@ -11,6 +11,7 @@
 #include <cwchar>
 #include <ctime>
 #include <cstdarg>
+#include <cstdio>
 #include <type_traits>
 
 #include "test_macros.h"
Index: libcxx/test/std/depr/depr.c.headers/wchar_h.pass.cpp
===================================================================
--- libcxx/test/std/depr/depr.c.headers/wchar_h.pass.cpp
+++ libcxx/test/std/depr/depr.c.headers/wchar_h.pass.cpp
@@ -10,6 +10,7 @@
 
 #include <wchar.h>
 #include <stdarg.h>
+#include <stdio.h>
 #include <type_traits>
 
 #include "test_macros.h"


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D63289.204582.patch
Type: text/x-patch
Size: 754 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20190613/88d8e8e9/attachment.bin>


More information about the libcxx-commits mailing list