aboutsummaryrefslogtreecommitdiffstats
path: root/unittests
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
commitbd9060c5c028486d1af59edd5ba5bd1217e6af8e (patch)
tree7d89bb05436b3f0b4d428c632f2465408c942688 /unittests
parent53afd08bd1d1de79cbd590617dfb828a5ce4b1b1 (diff)
downloadexternal_llvm-bd9060c5c028486d1af59edd5ba5bd1217e6af8e.zip
external_llvm-bd9060c5c028486d1af59edd5ba5bd1217e6af8e.tar.gz
external_llvm-bd9060c5c028486d1af59edd5ba5bd1217e6af8e.tar.bz2
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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@158912 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'unittests')
-rw-r--r--unittests/Support/AlignOfTest.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/unittests/Support/AlignOfTest.cpp b/unittests/Support/AlignOfTest.cpp
index 278c7a7..c45db2c 100644
--- a/unittests/Support/AlignOfTest.cpp
+++ b/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;