catch2/fuzzing/NullOStream.cpp

11 lines
233 B
C++
Raw Permalink Normal View History

2020-09-23 21:54:09 +02:00
#include "NullOStream.h"
void NullOStream::avoidOutOfLineVirtualCompilerWarning()
{
}
int NullStreambuf::overflow(int c){
setp(dummyBuffer, dummyBuffer + sizeof(dummyBuffer));
return (c == traits_type::eof()) ? '\0' : c;
}