#ifndef LIBC_COPT_STDIO_USE_SYSTEM_FILE
#include "src/stdio/fclose.h"
#include "src/stdio/ferror.h"
#include "src/stdio/fopen.h"
#include "src/stdio/fread.h"
#endif
#include "src/stdio/fprintf.h"
#include "test/UnitTest/Test.h"
#include <stdio.h>
namespace printf_test {
#ifndef LIBC_COPT_STDIO_USE_SYSTEM_FILE
using LIBC_NAMESPACE::fclose;
using LIBC_NAMESPACE::ferror;
using LIBC_NAMESPACE::fopen;
using LIBC_NAMESPACE::fread;
#else
fclose;
ferror;
fopen;
fread;
#endif
}
TEST(LlvmLibcFPrintfTest, WriteToFile) { … }