[C++ PATCH] Deprecate -ffriend-injection
[official-gcc.git] / gcc / testsuite / g++.dg / lto / 20091219_0.C
blobb76a95a9d1324fcf6df02050ca93abc32383b16b
1 // { dg-lto-do run }
2 // { dg-lto-options {{-O3 -flto}} }
4 #include <string>
5 #include <map>
7 int main ()
9   typedef std::map<int, std::string> Map;
10   static Map m;
12   Map::const_iterator it = m.find(0);
13   if (it != m.end())
14     std::string s = it->second;
16   return 0;