Sign in
gnu
/
gcc
/
1f16a020acbea0af26209478990b83b1a1ba3a2b
/
.
/
gcc
/
testsuite
/
g++.old-deja
/
g++.pt
/
alignof.C
blob: d6af268412d5debd23dbb3847dbc26652e96f290 [
file
] [
log
] [
blame
]
// { dg-do run }
extern
"C"
void
abort
();
struct
S
{
char
c
;
double
d
;
};
template
<
class
T
>
void
foo
(
T
)
{
if
(
__alignof__
(
T
)
!=
__alignof__
(
S
))
abort
();
}
int
main
()
{
foo
(
S
());
}