repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git]
/
gcc
/
testsuite
/
consistency.vlad
/
layout
/
a-of-s-ptrdiff_t.c
blob
a85d34970cbac4335fa7fee9845492af628b331e
1
#include <stdio.h>
2
#include <stddef.h>
3
4
static struct
sss
{
5
ptrdiff_t
f
;
6
}
a
[
10
];
7
8
int
main
(
void
) {
9
printf
(
"++++Array of struct with ptrdiff_t:
\n
"
);
10
printf
(
"size=%d,align=%d,displ-a[5]=%d,align-a[5]=%d
\n
"
,
11
sizeof
(
a
),
__alignof__
(
a
), (
char
*)&
a
[
5
] - (
char
*)
a
,
__alignof__
(
a
[
5
]));
12
return
0
;
13
}