aboutsummaryrefslogtreecommitdiff
path: root/llvm
diff options
context:
space:
mode:
authorGuillaume Chatelet <gchatelet@google.com>2022-12-15 15:32:21 +0000
committerGuillaume Chatelet <gchatelet@google.com>2022-12-15 15:34:04 +0000
commit07343dc0b6a29e23a93bc16fa8d3fa9c584851c1 (patch)
tree656b2810812d2237fd1fbf70728d4cdc6e891b80 /llvm
parent90f9168307293ef5278a212dee98c884ab0141cf (diff)
downloadllvm-07343dc0b6a29e23a93bc16fa8d3fa9c584851c1.zip
llvm-07343dc0b6a29e23a93bc16fa8d3fa9c584851c1.tar.gz
llvm-07343dc0b6a29e23a93bc16fa8d3fa9c584851c1.tar.bz2
Fix failing test in presence of exceptions D140098
There is no point in testing this behavior since this is std::optional's semantic.
Diffstat (limited to 'llvm')
-rw-r--r--llvm/unittests/Support/AlignmentTest.cpp4
1 files changed, 0 insertions, 4 deletions
diff --git a/llvm/unittests/Support/AlignmentTest.cpp b/llvm/unittests/Support/AlignmentTest.cpp
index 07854dd..01ac02f 100644
--- a/llvm/unittests/Support/AlignmentTest.cpp
+++ b/llvm/unittests/Support/AlignmentTest.cpp
@@ -234,10 +234,6 @@ std::vector<uint64_t> getValidAlignmentsForDeathTest() {
std::vector<uint64_t> getNonPowerOfTwo() { return {3, 10, 15}; }
-TEST(AlignmentDeathTest, CantConvertUnsetMaybe) {
- EXPECT_DEATH((MaybeAlign(0).value()), ".*");
-}
-
TEST(AlignmentDeathTest, InvalidCTors) {
EXPECT_DEATH((Align(0)), "Value must not be 0");
for (uint64_t Value : getNonPowerOfTwo()) {