Debian Codegraph @

gcc/testsuite/g++.dg/lto/20091219_0.C

raw
1 // { dg-lto-do run }
2 // { dg-lto-options {{-O3 -flto}} }
3 // { dg-skip-if "requires hosted libstdc++ for string" { ! hostedlib } }
4
5 #include <string>
6 #include <map>
7
8 int main ()
9 {
10 typedef std::map<int, std::string> Map;
11 static Map m;
12
13 Map::const_iterator it = m.find(0);
14 if (it != m.end())
15 std::string s = it->second;
16
17 return 0;
18 }