Fix printing of std::map broken in 1e004e9.
Signed-off-by: Vassil Vassilev <vvasilev@cern.ch>
This commit is contained in:
parent
0a1bab6bd8
commit
9157aad03e
@ -103,10 +103,10 @@ namespace cling {
|
||||
return valuePrinterInternal::kEmptyCollection;
|
||||
|
||||
std::string str("{ ");
|
||||
str += printPair(*iter);
|
||||
str += printPair(iter);
|
||||
while (++iter != iterEnd) {
|
||||
str += ", ";
|
||||
str += printPair(*iter);
|
||||
str += printPair(iter);
|
||||
}
|
||||
return str + " }";
|
||||
}
|
||||
|
@ -12,6 +12,7 @@
|
||||
#include <string>
|
||||
#include <tuple>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
std::vector<bool> Bv(5,5)
|
||||
// FIXME: Printing std::vector<bool> is still broken.
|
||||
@ -34,5 +35,14 @@ cling::printValue(&A) == cling::printValue(&B)
|
||||
std::tuple<> tA
|
||||
// CHECK: (std::tuple<> &) {}
|
||||
|
||||
std::map<int, int> m
|
||||
// CHECK: (std::map<int, int> &) {}
|
||||
|
||||
for (int i = 0; i < 5; ++i) m[i] = i+1;
|
||||
|
||||
m
|
||||
// CHECK: (std::map<int, int> &) { 0 => 1, 1 => 2, 2 => 3, 3 => 4, 4 => 5 }
|
||||
|
||||
|
||||
// expected-no-diagnostics
|
||||
.q
|
||||
|
Loading…
x
Reference in New Issue
Block a user