#include "src/__support/CPP/string_view.h"
#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/fwrite.h"
#endif
#include "src/stdio/fscanf.h"
#include "test/UnitTest/Test.h"
#include <stdio.h>
namespace scanf_test {
#ifndef LIBC_COPT_STDIO_USE_SYSTEM_FILE
using LIBC_NAMESPACE::fclose;
using LIBC_NAMESPACE::ferror;
using LIBC_NAMESPACE::fopen;
using LIBC_NAMESPACE::fwrite;
#else
fclose;
ferror;
fopen;
fwrite;
#endif
}
TEST(LlvmLibcFScanfTest, WriteToFile) { … }