Sign in
gnu
/
gcc
/
1f16a020acbea0af26209478990b83b1a1ba3a2b
/
.
/
gcc
/
testsuite
/
g++.old-deja
/
g++.pt
/
sizeof.C
blob: 159c55400040cfe4e824becec9312b153a64a7df [
file
] [
log
] [
blame
]
// { dg-do run }
extern
"C"
void
abort
();
template
<
int
I
>
int
bar
()
{
return
I
;
}
template
<
class
T
>
int
foo
(
T
)
{
return
bar
<
sizeof
(
T
)
+
4
>()
+
bar
<
sizeof
(
long
)
+
7
>();
}
int
main
()
{
if
(
foo
(
2
)
!=
sizeof
(
int
)
+
4
+
sizeof
(
long
)
+
7
)
abort
();
}