test: Mark 316 tests as XFAIL to rename to xfail.pass.cpp.

This commit is contained in:
NAKAMURA Takumi
2011-04-20 16:59:33 +09:00
parent d3665e1d9d
commit cb430f3a47
316 changed files with 0 additions and 0 deletions

View File

@@ -0,0 +1,46 @@
//===----------------------------------------------------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is dual licensed under the MIT and the University of Illinois Open
// Source Licenses. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//
// <fstream>
// template <class charT, class traits = char_traits<charT> >
// class basic_ifstream
// explicit basic_ifstream(const char* s, ios_base::openmode mode = ios_base::in);
#include <fstream>
#include <cassert>
int main()
{
{
std::ifstream fs("test.dat");
double x = 0;
fs >> x;
assert(x == 3.25);
}
{
std::ifstream fs("test.dat", std::ios_base::out);
double x = 0;
fs >> x;
assert(x == 3.25);
}
{
std::wifstream fs("test.dat");
double x = 0;
fs >> x;
assert(x == 3.25);
}
{
std::wifstream fs("test.dat", std::ios_base::out);
double x = 0;
fs >> x;
assert(x == 3.25);
}
}