Skip to content

Commit e5c8d9e

Browse files
Merge pull request diffblue#97 from diffblue/bugfix/range_union-test-warnings
Fixed warnings caused by unused variable
2 parents 5811370 + 359c88e commit e5c8d9e

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

unit/range_union/main.cpp

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
/*******************************************************************\
22
3-
Module: Serialization tests
3+
Module: Range union tests
44
55
66
7-
Purpose: Testing of virtual_map and related classes.
7+
Purpose: Testing of range_union.
88
99
\*******************************************************************/
1010

@@ -35,17 +35,29 @@ int main()
3535
const std::vector<std::string> cstrs = { "hic", "loc" };
3636
std::cout << "Trying to bind const references to const strings:";
3737
for(const std::string &str : range_union(cstrs, cstrs))
38+
{
39+
str.empty();
3840
std::cout << " yes!";
41+
}
3942
std::cout << endl_ind;
4043
std::cout << "Trying to bind non-const references to non-const strings:";
4144
for(std::string &str : range_union(strs, strs))
45+
{
46+
str.empty();
4247
std::cout << " yes!";
48+
}
4349
std::cout << endl_ind;
4450
std::cout << "Trying to bind const references to mixed strings:";
4551
for(const std::string &str : range_union(cstrs, strs))
52+
{
53+
str.empty();
4654
std::cout << " yes!";
55+
}
4756
for(const std::string &str : range_union(strs, cstrs))
57+
{
58+
str.empty();
4859
std::cout << " yes!";
60+
}
4961
std::cout << endl_ind;
5062
// If you could catch this sort of error then this test would be valid
5163
// try

0 commit comments

Comments
 (0)