summaryrefslogtreecommitdiffstats
path: root/llvm/unittests/Support/ScaledNumberTest.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/unittests/Support/ScaledNumberTest.cpp')
-rw-r--r--llvm/unittests/Support/ScaledNumberTest.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/unittests/Support/ScaledNumberTest.cpp b/llvm/unittests/Support/ScaledNumberTest.cpp
index 449c0477b0a..3fa63b7bf3c 100644
--- a/llvm/unittests/Support/ScaledNumberTest.cpp
+++ b/llvm/unittests/Support/ScaledNumberTest.cpp
@@ -562,4 +562,7 @@ TEST(ScaledNumberHelpersTest, toIntBug) {
EXPECT_EQ(1u, (n * n).toInt<uint32_t>());
}
+static_assert(is_trivially_copyable<ScaledNumber<uint32_t>>::value,
+ "trivially copyable");
+
} // end namespace
OpenPOWER on IntegriCloud