diff options
Diffstat (limited to 'src/logging_unittest.cc')
-rw-r--r-- | src/logging_unittest.cc | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/logging_unittest.cc b/src/logging_unittest.cc index 600cd06..b8a9a87 100644 --- a/src/logging_unittest.cc +++ b/src/logging_unittest.cc @@ -272,7 +272,12 @@ void TestLogging(bool check_counts) { LOG(ERROR) << string("foo") << ' '<< j << ' ' << setw(10) << j << " " << setw(1) << hex << j; - LOG(ERROR) << (&LOG(ERROR) && 0) << " nested LOG"; + { + google::LogMessage outer(__FILE__, __LINE__, google::ERROR); + outer.stream() << "outer"; + + LOG(ERROR) << "inner"; + } LogMessage("foo", LogMessage::kNoLogPrefix, GLOG_INFO).stream() << "no prefix"; |