Sign in
gnu
/
gcc
/
1f16a020acbea0af26209478990b83b1a1ba3a2b
/
.
/
gcc
/
testsuite
/
g++.old-deja
/
g++.pt
/
local4.C
blob: b199f1010b90910d820993a9d480ea4c831230a4 [
file
] [
log
] [
blame
]
// { dg-do run }
extern
"C"
void
abort
();
template
<
class
T
>
struct
S
{};
S
<int>
si
;
template
<
class
T
>
int
f
(
T t
)
{
struct
S
{
int
g
(
int
i
)
{
return
i
+
2
;
}
};
S s
;
return
s
.
g
(
t
)
+
s
.
g
(
t
);
}
int
main
()
{
if
(
f
(
3
)
!=
10
)
abort
();
}