summaryrefslogtreecommitdiffstats
path: root/llvm/unittests/Support/AlignOfTest.cpp
diff options
context:
space:
mode:
authorChandler Carruth <chandlerc@gmail.com>2012-06-21 10:02:41 +0000
committerChandler Carruth <chandlerc@gmail.com>2012-06-21 10:02:41 +0000
commit92f2f37bae1488393d0245b7c6b8e6a9d7a207c3 (patch)
tree08b7e40a5cb61faa49eb10eb9b1fc649c7315fa8 /llvm/unittests/Support/AlignOfTest.cpp
parent33af93f7a6c55b8a17a6870fa805259909833a91 (diff)
downloadbcm5719-llvm-92f2f37bae1488393d0245b7c6b8e6a9d7a207c3.tar.gz
bcm5719-llvm-92f2f37bae1488393d0245b7c6b8e6a9d7a207c3.zip
Add a pragma to supress an MSVC warning on some of the absurd code I'm
using to test the alignment support library. Patch from Nikola on IRC. llvm-svn: 158912
Diffstat (limited to 'llvm/unittests/Support/AlignOfTest.cpp')
-rw-r--r--llvm/unittests/Support/AlignOfTest.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/llvm/unittests/Support/AlignOfTest.cpp b/llvm/unittests/Support/AlignOfTest.cpp
index 278c7a71f4b..c45db2cdc00 100644
--- a/llvm/unittests/Support/AlignOfTest.cpp
+++ b/llvm/unittests/Support/AlignOfTest.cpp
@@ -16,6 +16,12 @@ using namespace llvm;
namespace {
+// Disable warnings about questionable type definitions.
+// We're testing that even questionable types work with the alignment utilities.
+#ifdef _MSC_VER
+#pragma warning(disable:4584)
+#endif
+
// Define some fixed alignment types to use in these tests.
#if __cplusplus == 201103L || __has_feature(cxx_alignas)
typedef char alignas(1) A1;
OpenPOWER on IntegriCloud