diff --git a/test/ostream-test.cc b/test/ostream-test.cc index 7f4479d9b1af..71bd6f8a5f32 100644 --- a/test/ostream-test.cc +++ b/test/ostream-test.cc @@ -26,6 +26,11 @@ static std::wostream& operator<<(std::wostream& os, const Date& d) { return os; } +// Make sure that overloaded comma operators do no harm to is_streamable. +struct type_with_comma_op {}; +template void operator,(type_with_comma_op, const T&); +template type_with_comma_op operator<<(T&, const Date&); + enum TestEnum {}; static std::ostream& operator<<(std::ostream& os, TestEnum) { return os << "TestEnum";