mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-12-05 19:41:43 +00:00
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:
1 parent
980eda3fc2
commit
dd2b7a0a0e
2 files changed
+10
-2
No files matched your search
+5
-1
@@ -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');
|
||||
|
||||
Reference in new issue
Block a user