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