mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-28 04:33:05 +00:00
Use LLVM_STATIC_ASSERT rather than a hand-rolled implementation.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@198330 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
a7133ee752
commit
028b816496
@ -117,8 +117,8 @@ TYPED_TEST(ValueMapTest, OperationsWork) {
|
|||||||
|
|
||||||
template<typename ExpectedType, typename VarType>
|
template<typename ExpectedType, typename VarType>
|
||||||
void CompileAssertHasType(VarType) {
|
void CompileAssertHasType(VarType) {
|
||||||
LLVM_ATTRIBUTE_UNUSED typedef char
|
LLVM_STATIC_ASSERT((is_same<ExpectedType, VarType>::value),
|
||||||
NOT_SAME[is_same<ExpectedType, VarType>::value ? 1 : -1];
|
"Not the same type");
|
||||||
}
|
}
|
||||||
|
|
||||||
TYPED_TEST(ValueMapTest, Iteration) {
|
TYPED_TEST(ValueMapTest, Iteration) {
|
||||||
|
Loading…
Reference in New Issue
Block a user