llvm.org GIT mirror llvm / 93d6137
ErrorOrTest.cpp: Check existence of EXPECT_DEBUG_DEATH. It is not always available. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@173123 91177308-0d34-0410-b5e6-96231b3b80d8 NAKAMURA Takumi 7 years ago
1 changed file(s) with 2 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
2727 a = t2();
2828 EXPECT_FALSE(a);
2929 EXPECT_EQ(errc::invalid_argument, a);
30 #ifdef EXPECT_DEBUG_DEATH
3031 EXPECT_DEBUG_DEATH(*a, "Cannot get value when an error exists");
32 #endif
3133 }
3234
3335 #if LLVM_HAS_CXX11_STDLIB