mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-29 22:30:33 +00:00
Fix unit test in NDEBUG build
llvm-svn: 290604
This commit is contained in:
parent
b6ef94fb75
commit
1c3305dfe1
@ -14,6 +14,7 @@
|
||||
#include <string>
|
||||
using namespace llvm;
|
||||
|
||||
#ifndef NDEBUG
|
||||
TEST(DebugTest, Basic) {
|
||||
std::string s1, s2;
|
||||
raw_string_ostream os1(s1), os2(s2);
|
||||
@ -30,3 +31,4 @@ TEST(DebugTest, Basic) {
|
||||
DEBUG_WITH_TYPE("B", os2 << "B");
|
||||
EXPECT_EQ("A", os2.str());
|
||||
}
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user