mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-13 04:30:23 +00:00
silence some unused-value warnings.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@101689 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
091fc4b556
commit
a07cd90a2a
@ -61,9 +61,9 @@ TYPED_TEST(ValueMapTest, FollowsValue) {
|
|||||||
|
|
||||||
TYPED_TEST(ValueMapTest, OperationsWork) {
|
TYPED_TEST(ValueMapTest, OperationsWork) {
|
||||||
ValueMap<TypeParam*, int> VM;
|
ValueMap<TypeParam*, int> VM;
|
||||||
ValueMap<TypeParam*, int> VM2(16);
|
ValueMap<TypeParam*, int> VM2(16); (void)VM2;
|
||||||
typename ValueMapConfig<TypeParam*>::ExtraData Data;
|
typename ValueMapConfig<TypeParam*>::ExtraData Data;
|
||||||
ValueMap<TypeParam*, int> VM3(Data, 16);
|
ValueMap<TypeParam*, int> VM3(Data, 16); (void)VM3;
|
||||||
EXPECT_TRUE(VM.empty());
|
EXPECT_TRUE(VM.empty());
|
||||||
|
|
||||||
VM[this->BitcastV.get()] = 7;
|
VM[this->BitcastV.get()] = 7;
|
||||||
@ -128,7 +128,7 @@ TYPED_TEST(ValueMapTest, Iteration) {
|
|||||||
for (typename ValueMap<TypeParam*, int>::iterator I = VM.begin(), E = VM.end();
|
for (typename ValueMap<TypeParam*, int>::iterator I = VM.begin(), E = VM.end();
|
||||||
I != E; ++I) {
|
I != E; ++I) {
|
||||||
++size;
|
++size;
|
||||||
std::pair<TypeParam*, int> value = *I;
|
std::pair<TypeParam*, int> value = *I; (void)value;
|
||||||
CompileAssertHasType<TypeParam*>(I->first);
|
CompileAssertHasType<TypeParam*>(I->first);
|
||||||
if (I->second == 2) {
|
if (I->second == 2) {
|
||||||
EXPECT_EQ(this->BitcastV.get(), I->first);
|
EXPECT_EQ(this->BitcastV.get(), I->first);
|
||||||
@ -150,7 +150,7 @@ TYPED_TEST(ValueMapTest, Iteration) {
|
|||||||
for (typename ValueMap<TypeParam*, int>::const_iterator I = CVM.begin(),
|
for (typename ValueMap<TypeParam*, int>::const_iterator I = CVM.begin(),
|
||||||
E = CVM.end(); I != E; ++I) {
|
E = CVM.end(); I != E; ++I) {
|
||||||
++size;
|
++size;
|
||||||
std::pair<TypeParam*, int> value = *I;
|
std::pair<TypeParam*, int> value = *I; (void)value;
|
||||||
CompileAssertHasType<TypeParam*>(I->first);
|
CompileAssertHasType<TypeParam*>(I->first);
|
||||||
if (I->second == 5) {
|
if (I->second == 5) {
|
||||||
EXPECT_EQ(this->BitcastV.get(), I->first);
|
EXPECT_EQ(this->BitcastV.get(), I->first);
|
||||||
|
Loading…
Reference in New Issue
Block a user