repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
[C++ PATCH] Deprecate -ffriend-injection
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
lto
/
20091219_0.C
blob
b76a95a9d1324fcf6df02050ca93abc32383b16b
1
// { dg-lto-do run }
2
// { dg-lto-options {{-O3 -flto}} }
3
4
#include <string>
5
#include <map>
6
7
int 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
}