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
2014-01-30 Alangi Derick <alangiderick@gmail.com>
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
template
/
static35.C
blob
d645f249041c6109b2e47f6fa54dd28fbe56b21d
1
// PR c++/10291
2
// { dg-do link }
3
4
template <class T>
5
int foo ()
6
{
7
static int i;
8
9
struct S {
10
int bar () {
11
return i;
12
}
13
} s;
14
15
return s.bar ();
16
}
17
18
int main ()
19
{
20
foo<int>();
21
}