summaryrefslogtreecommitdiff
path: root/Source/UnitTests/Common/BitFieldTest.cpp
diff options
context:
space:
mode:
authorShawn Hoffman <godisgovernment@gmail.com>2014-08-31 05:52:21 -0700
committerShawn Hoffman <godisgovernment@gmail.com>2014-09-01 21:27:45 -0700
commit839cace5ff15b56afa3a72c86b379c6abc4c0bf6 (patch)
treef4699fa8d840294976b477e16ced2b7d08bf9342 /Source/UnitTests/Common/BitFieldTest.cpp
parent0625b5defbd42b72db0003160687c79f8b9c8858 (diff)
msvc: get UnitTests compiling
Choose it from VS or pass /p:RunUnitTests=true to msbuild
Diffstat (limited to 'Source/UnitTests/Common/BitFieldTest.cpp')
-rw-r--r--Source/UnitTests/Common/BitFieldTest.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/UnitTests/Common/BitFieldTest.cpp b/Source/UnitTests/Common/BitFieldTest.cpp
index aa98352272..ff317649e6 100644
--- a/Source/UnitTests/Common/BitFieldTest.cpp
+++ b/Source/UnitTests/Common/BitFieldTest.cpp
@@ -139,7 +139,8 @@ TEST(BitField, Alignment)
GC_ALIGNED16(OddlyAlignedTestStruct test_struct);
TestUnion& object = test_struct.obj;
- static_assert(alignof(test_struct.obj.signed_1bit) == 1, "Incorrect variable alignment");
+ static_assert(alignof(decltype(test_struct.obj.signed_1bit)) == 1,
+ "Incorrect variable alignment");
for (u64 val : table)
{