summaryrefslogtreecommitdiffstats
path: root/llvm/unittests/Support/AlignmentTest.cpp
diff options
context:
space:
mode:
authorGuillaume Chatelet <gchatelet@google.com>2019-10-03 15:53:50 +0000
committerGuillaume Chatelet <gchatelet@google.com>2019-10-03 15:53:50 +0000
commitd1f23bd2250b3f1f84ed3c210a6cdcc0065761f1 (patch)
treee0cf00506ae69548f57866e7734977999f219d58 /llvm/unittests/Support/AlignmentTest.cpp
parentf5177a7db48b3d375e35f5ee5274365a237cdd05 (diff)
downloadbcm5719-llvm-d1f23bd2250b3f1f84ed3c210a6cdcc0065761f1.tar.gz
bcm5719-llvm-d1f23bd2250b3f1f84ed3c210a6cdcc0065761f1.zip
Revert "[Alignment][NFC] Allow constexpr Align"
This reverts commit b3af236fb5fc6e50fcc1b54d868f0bff557f3fb1. llvm-svn: 373619
Diffstat (limited to 'llvm/unittests/Support/AlignmentTest.cpp')
-rw-r--r--llvm/unittests/Support/AlignmentTest.cpp10
1 files changed, 0 insertions, 10 deletions
diff --git a/llvm/unittests/Support/AlignmentTest.cpp b/llvm/unittests/Support/AlignmentTest.cpp
index 3d35a612b83..0b1435912b9 100644
--- a/llvm/unittests/Support/AlignmentTest.cpp
+++ b/llvm/unittests/Support/AlignmentTest.cpp
@@ -44,16 +44,6 @@ TEST(AlignmentTest, ValidCTors) {
}
}
-TEST(AlignmentTest, CompileTimeConstant) {
- EXPECT_EQ(Align::Constant<1>(), Align(1));
- EXPECT_EQ(Align::Constant<2>(), Align(2));
- EXPECT_EQ(Align::Constant<4>(), Align(4));
- EXPECT_EQ(Align::Constant<8>(), Align(8));
- EXPECT_EQ(Align::Constant<16>(), Align(16));
- EXPECT_EQ(Align::Constant<32>(), Align(32));
- EXPECT_EQ(Align::Constant<64>(), Align(64));
-}
-
TEST(AlignmentTest, CheckMaybeAlignHasValue) {
EXPECT_TRUE(MaybeAlign(1));
EXPECT_TRUE(MaybeAlign(1).hasValue());
OpenPOWER on IntegriCloud