Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
template
/
static35.C
blob: d645f249041c6109b2e47f6fa54dd28fbe56b21d [
file
] [
log
] [
blame
]
// PR c++/10291
// { dg-do link }
template
<
class
T
>
int
foo
()
{
static
int
i
;
struct
S
{
int
bar
()
{
return
i
;
}
}
s
;
return
s
.
bar
();
}
int
main
()
{
foo
<int>
();
}