Fixing whitespace problems
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@111758 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -50,5 +50,5 @@ int main()
|
|||||||
assert(f2.sgetc() == L'2');
|
assert(f2.sgetc() == L'2');
|
||||||
}
|
}
|
||||||
remove("test.dat");
|
remove("test.dat");
|
||||||
#endif
|
#endif // _LIBCPP_MOVE
|
||||||
}
|
}
|
||||||
|
@@ -48,5 +48,5 @@ int main()
|
|||||||
assert(f2.sgetc() == L'2');
|
assert(f2.sgetc() == L'2');
|
||||||
}
|
}
|
||||||
remove("test.dat");
|
remove("test.dat");
|
||||||
#endif
|
#endif // _LIBCPP_MOVE
|
||||||
}
|
}
|
||||||
|
@@ -44,5 +44,5 @@ int main()
|
|||||||
assert(x == 3.25);
|
assert(x == 3.25);
|
||||||
}
|
}
|
||||||
std::remove("test.dat");
|
std::remove("test.dat");
|
||||||
#endif
|
#endif // _LIBCPP_MOVE
|
||||||
}
|
}
|
||||||
|
@@ -42,5 +42,5 @@ int main()
|
|||||||
assert(x == 3.25);
|
assert(x == 3.25);
|
||||||
}
|
}
|
||||||
std::remove("test.dat");
|
std::remove("test.dat");
|
||||||
#endif
|
#endif // _LIBCPP_MOVE
|
||||||
}
|
}
|
||||||
|
@@ -36,5 +36,5 @@ int main()
|
|||||||
fs >> x;
|
fs >> x;
|
||||||
assert(x == 3.25);
|
assert(x == 3.25);
|
||||||
}
|
}
|
||||||
#endif
|
#endif // _LIBCPP_MOVE
|
||||||
}
|
}
|
||||||
|
@@ -34,5 +34,5 @@ int main()
|
|||||||
fs >> x;
|
fs >> x;
|
||||||
assert(x == 3.25);
|
assert(x == 3.25);
|
||||||
}
|
}
|
||||||
#endif
|
#endif // _LIBCPP_MOVE
|
||||||
}
|
}
|
||||||
|
@@ -46,5 +46,5 @@ int main()
|
|||||||
assert(x == 3.25);
|
assert(x == 3.25);
|
||||||
}
|
}
|
||||||
remove("test.dat");
|
remove("test.dat");
|
||||||
#endif
|
#endif // _LIBCPP_MOVE
|
||||||
}
|
}
|
||||||
|
@@ -44,5 +44,5 @@ int main()
|
|||||||
assert(x == 3.25);
|
assert(x == 3.25);
|
||||||
}
|
}
|
||||||
remove("test.dat");
|
remove("test.dat");
|
||||||
#endif
|
#endif // _LIBCPP_MOVE
|
||||||
}
|
}
|
||||||
|
@@ -37,7 +37,7 @@ struct test_iostream
|
|||||||
{base::operator=(std::move(s)); return *this;}
|
{base::operator=(std::move(s)); return *this;}
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif // _LIBCPP_MOVE
|
||||||
|
|
||||||
int main()
|
int main()
|
||||||
{
|
{
|
||||||
@@ -88,5 +88,5 @@ int main()
|
|||||||
assert(is2.precision() == 6);
|
assert(is2.precision() == 6);
|
||||||
assert(is2.getloc().name() == "C");
|
assert(is2.getloc().name() == "C");
|
||||||
}
|
}
|
||||||
#endif
|
#endif // _LIBCPP_MOVE
|
||||||
}
|
}
|
||||||
|
@@ -37,7 +37,7 @@ struct test_iostream
|
|||||||
: base(std::move(s)) {}
|
: base(std::move(s)) {}
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif // _LIBCPP_MOVE
|
||||||
|
|
||||||
int main()
|
int main()
|
||||||
{
|
{
|
||||||
@@ -74,5 +74,5 @@ int main()
|
|||||||
assert(is.precision() == 6);
|
assert(is.precision() == 6);
|
||||||
assert(is.getloc().name() == "C");
|
assert(is.getloc().name() == "C");
|
||||||
}
|
}
|
||||||
#endif
|
#endif // _LIBCPP_MOVE
|
||||||
}
|
}
|
||||||
|
@@ -42,7 +42,7 @@ public:
|
|||||||
CharT* egptr() const {return base::egptr();}
|
CharT* egptr() const {return base::egptr();}
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif // _LIBCPP_MOVE
|
||||||
|
|
||||||
int main()
|
int main()
|
||||||
{
|
{
|
||||||
@@ -59,5 +59,5 @@ int main()
|
|||||||
std::wistream(&sb) >> i;
|
std::wistream(&sb) >> i;
|
||||||
assert(i == 123);
|
assert(i == 123);
|
||||||
}
|
}
|
||||||
#endif
|
#endif // _LIBCPP_MOVE
|
||||||
}
|
}
|
||||||
|
@@ -37,7 +37,7 @@ struct test_istream
|
|||||||
{base::operator=(std::move(s)); return *this;}
|
{base::operator=(std::move(s)); return *this;}
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif // _LIBCPP_MOVE
|
||||||
|
|
||||||
int main()
|
int main()
|
||||||
{
|
{
|
||||||
@@ -88,5 +88,5 @@ int main()
|
|||||||
assert(is2.precision() == 6);
|
assert(is2.precision() == 6);
|
||||||
assert(is2.getloc().name() == "C");
|
assert(is2.getloc().name() == "C");
|
||||||
}
|
}
|
||||||
#endif
|
#endif // _LIBCPP_MOVE
|
||||||
}
|
}
|
||||||
|
@@ -37,7 +37,7 @@ struct test_istream
|
|||||||
: base(std::move(s)) {}
|
: base(std::move(s)) {}
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif // _LIBCPP_MOVE
|
||||||
|
|
||||||
int main()
|
int main()
|
||||||
{
|
{
|
||||||
@@ -74,5 +74,5 @@ int main()
|
|||||||
assert(is.precision() == 6);
|
assert(is.precision() == 6);
|
||||||
assert(is.getloc().name() == "C");
|
assert(is.getloc().name() == "C");
|
||||||
}
|
}
|
||||||
#endif
|
#endif // _LIBCPP_MOVE
|
||||||
}
|
}
|
||||||
|
@@ -37,7 +37,7 @@ struct test_ostream
|
|||||||
{base::operator=(std::move(s)); return *this;}
|
{base::operator=(std::move(s)); return *this;}
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif // _LIBCPP_MOVE
|
||||||
|
|
||||||
int main()
|
int main()
|
||||||
{
|
{
|
||||||
@@ -88,5 +88,5 @@ int main()
|
|||||||
assert(os2.precision() == 6);
|
assert(os2.precision() == 6);
|
||||||
assert(os2.getloc().name() == "C");
|
assert(os2.getloc().name() == "C");
|
||||||
}
|
}
|
||||||
#endif
|
#endif // _LIBCPP_MOVE
|
||||||
}
|
}
|
||||||
|
@@ -37,7 +37,7 @@ struct test_ostream
|
|||||||
: base(std::move(s)) {}
|
: base(std::move(s)) {}
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif // _LIBCPP_MOVE
|
||||||
|
|
||||||
int main()
|
int main()
|
||||||
{
|
{
|
||||||
@@ -70,5 +70,5 @@ int main()
|
|||||||
assert(os.precision() == 6);
|
assert(os.precision() == 6);
|
||||||
assert(os.getloc().name() == "C");
|
assert(os.getloc().name() == "C");
|
||||||
}
|
}
|
||||||
#endif
|
#endif // _LIBCPP_MOVE
|
||||||
}
|
}
|
||||||
|
@@ -53,7 +53,7 @@ protected:
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif // _LIBCPP_MOVE
|
||||||
|
|
||||||
int main()
|
int main()
|
||||||
{
|
{
|
||||||
@@ -68,5 +68,5 @@ int main()
|
|||||||
std::wostream(&sb) << L"123";
|
std::wostream(&sb) << L"123";
|
||||||
assert(sb.str() == L"123");
|
assert(sb.str() == L"123");
|
||||||
}
|
}
|
||||||
#endif
|
#endif // _LIBCPP_MOVE
|
||||||
}
|
}
|
||||||
|
@@ -21,5 +21,5 @@ int main()
|
|||||||
#else
|
#else
|
||||||
assert(std::cerr.tie() == &std::cout);
|
assert(std::cerr.tie() == &std::cout);
|
||||||
assert(std::cerr.flags() & std::ios_base::unitbuf);
|
assert(std::cerr.flags() & std::ios_base::unitbuf);
|
||||||
#endif
|
#endif // 0
|
||||||
}
|
}
|
||||||
|
@@ -22,7 +22,7 @@ int main()
|
|||||||
std::cout << "Enter a number: ";
|
std::cout << "Enter a number: ";
|
||||||
std::cin >> i;
|
std::cin >> i;
|
||||||
std::cout << "The number is : " << i << '\n';
|
std::cout << "The number is : " << i << '\n';
|
||||||
#else
|
#else // 0
|
||||||
assert(std::cin.tie() == &std::cout);
|
assert(std::cin.tie() == &std::cout);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
@@ -21,7 +21,7 @@ int main()
|
|||||||
std::cout << "Enter a number: ";
|
std::cout << "Enter a number: ";
|
||||||
std::cin >> i;
|
std::cin >> i;
|
||||||
std::cout << "The number is : " << i << '\n';
|
std::cout << "The number is : " << i << '\n';
|
||||||
#else
|
#else // 0
|
||||||
(void)std::cout;
|
(void)std::cout;
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
@@ -21,5 +21,5 @@ int main()
|
|||||||
#else
|
#else
|
||||||
assert(std::wcerr.tie() == &std::wcout);
|
assert(std::wcerr.tie() == &std::wcout);
|
||||||
assert(std::wcerr.flags() & std::ios_base::unitbuf);
|
assert(std::wcerr.flags() & std::ios_base::unitbuf);
|
||||||
#endif
|
#endif // 0
|
||||||
}
|
}
|
||||||
|
@@ -22,7 +22,7 @@ int main()
|
|||||||
std::wcout << L"Enter a number: ";
|
std::wcout << L"Enter a number: ";
|
||||||
std::wcin >> i;
|
std::wcin >> i;
|
||||||
std::wcout << L"The number is : " << i << L'\n';
|
std::wcout << L"The number is : " << i << L'\n';
|
||||||
#else
|
#else // 0
|
||||||
assert(std::wcin.tie() == &std::wcout);
|
assert(std::wcin.tie() == &std::wcout);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
@@ -46,5 +46,5 @@ int main()
|
|||||||
ss >> i;
|
ss >> i;
|
||||||
assert(i == 456);
|
assert(i == 456);
|
||||||
}
|
}
|
||||||
#endif
|
#endif // _LIBCPP_MOVE
|
||||||
}
|
}
|
||||||
|
@@ -44,5 +44,5 @@ int main()
|
|||||||
ss >> i;
|
ss >> i;
|
||||||
assert(i == 456);
|
assert(i == 456);
|
||||||
}
|
}
|
||||||
#endif
|
#endif // _LIBCPP_MOVE
|
||||||
}
|
}
|
||||||
|
@@ -42,5 +42,5 @@ int main()
|
|||||||
ss << i << ' ' << 567;;
|
ss << i << ' ' << 567;;
|
||||||
assert(ss.str() == L"234 5676");
|
assert(ss.str() == L"234 5676");
|
||||||
}
|
}
|
||||||
#endif
|
#endif // _LIBCPP_MOVE
|
||||||
}
|
}
|
||||||
|
@@ -40,5 +40,5 @@ int main()
|
|||||||
ss << i << ' ' << 567;;
|
ss << i << ' ' << 567;;
|
||||||
assert(ss.str() == L"234 5676");
|
assert(ss.str() == L"234 5676");
|
||||||
}
|
}
|
||||||
#endif
|
#endif // _LIBCPP_MOVE
|
||||||
}
|
}
|
||||||
|
@@ -48,5 +48,5 @@ int main()
|
|||||||
ss << i << ' ' << 123;
|
ss << i << ' ' << 123;
|
||||||
assert(ss.str() == L"456 1236 ");
|
assert(ss.str() == L"456 1236 ");
|
||||||
}
|
}
|
||||||
#endif
|
#endif // _LIBCPP_MOVE
|
||||||
}
|
}
|
||||||
|
@@ -50,5 +50,5 @@ int main()
|
|||||||
ss << i << ' ' << 123;
|
ss << i << ' ' << 123;
|
||||||
assert(ss.str() == L"456 1236 ");
|
assert(ss.str() == L"456 1236 ");
|
||||||
}
|
}
|
||||||
#endif
|
#endif // _LIBCPP_MOVE
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user