mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-14 11:32:34 +00:00
Silence g++ 4.9 build issue in unit tests
Stopgap measure until we can just use static_assert(). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@198273 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
8dff260267
commit
a18007d9d6
@ -117,7 +117,8 @@ TYPED_TEST(ValueMapTest, OperationsWork) {
|
||||
|
||||
template<typename ExpectedType, typename VarType>
|
||||
void CompileAssertHasType(VarType) {
|
||||
typedef char assert[is_same<ExpectedType, VarType>::value ? 1 : -1];
|
||||
LLVM_ATTRIBUTE_UNUSED typedef char
|
||||
assert[is_same<ExpectedType, VarType>::value ? 1 : -1];
|
||||
}
|
||||
|
||||
TYPED_TEST(ValueMapTest, Iteration) {
|
||||
|
Loading…
Reference in New Issue
Block a user