Fix up typos in a couple of tests; due to agressive short-circuiting, they never failed on clang or gcc, but MSVC whined. Patch by Andrew Parker.

llvm-svn: 242618
This commit is contained in:
Marshall Clow
2015-07-18 18:24:15 +00:00
parent 980eda3fc2
commit dd2b7a0a0e
2 changed files with 10 additions and 2 deletions

View File

@@ -29,7 +29,7 @@ struct testbuf
: base(str, which) {}
typename base::int_type
overflow(typename base::int_type c = base::type_traits::eof())
overflow(typename base::int_type c = base::traits_type::eof())
{++overflow_called; return base::overflow(c);}
void pbump(int n) {base::pbump(n);}
@@ -37,6 +37,10 @@ struct testbuf
int main()
{
{ // sanity check
testbuf<char> tb("");;
tb.overflow();
}
{
testbuf<char> sb("abc");
assert(sb.sputc('1') == '1');