summaryrefslogtreecommitdiffstats
path: root/clang-tools-extra/test/cpp11-migrate/UseAuto/iterator.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'clang-tools-extra/test/cpp11-migrate/UseAuto/iterator.cpp')
-rw-r--r--clang-tools-extra/test/cpp11-migrate/UseAuto/iterator.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/clang-tools-extra/test/cpp11-migrate/UseAuto/iterator.cpp b/clang-tools-extra/test/cpp11-migrate/UseAuto/iterator.cpp
index ec1e5540759..59c2979b32e 100644
--- a/clang-tools-extra/test/cpp11-migrate/UseAuto/iterator.cpp
+++ b/clang-tools-extra/test/cpp11-migrate/UseAuto/iterator.cpp
@@ -148,5 +148,13 @@ int main(int argc, char **argv) {
// CHECK: auto && I2 = Vec.begin();
}
+ // Passing a string as an argument to introduce a temporary object
+ // that will create an expression with cleanups. Bugzilla: 15550
+ {
+ std::unordered_map<int> MapFind;
+ std::unordered_map<int>::iterator I = MapFind.find("foo");
+ // CHECK: auto I = MapFind.find("foo");
+ }
+
return 0;
}
OpenPOWER on IntegriCloud