[test] Use printf instead of C++ iostream, NFC.
authorJonas Hahnfeld <hahnjo@hahnjo.de>
Thu, 26 Jul 2018 18:23:40 +0000 (18:23 +0000)
committerJonas Hahnfeld <hahnjo@hahnjo.de>
Thu, 26 Jul 2018 18:23:40 +0000 (18:23 +0000)
commita7c9fe3762de3701bf6aea68fec382a046288353
treeb1fd67fe9ef527c6955536e37f5abe6346459859
parent3a0e9b37f3b592722b39d867404e62bf45bb786b
[test] Use printf instead of C++ iostream, NFC.

This test fails with libc++ when built with MemorySanitizer. This
is because we link to an uninstrumented version of the library
so msan detects a nested error when calling std::cout << "...".
This can be easily avoided by using good old printf.

Differential Revision: https://reviews.llvm.org/D49867

llvm-svn: 338053
compiler-rt/test/ubsan/TestCases/Misc/monitor.cpp