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