OSDN Git Service
(root)
/
pf3gnuchains
/
gcc-fork.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Fix up recent entries by espindola.
[pf3gnuchains/gcc-fork.git]
/
gcc
/
testsuite
/
consistency.vlad
/
layout
/
a-of-s-short.c
1
#include <stdio.h>
2
3
static struct sss{
4
short f;
5
} a[10];
6
7
int main (void) {
8
printf ("++++Array of struct with short:\n");
9
printf ("size=%d,align=%d,displ-a[5]=%d,align-a[5]=%d\n",
10
sizeof (a), __alignof__ (a), (char*)&a[5] - (char*)a, __alignof__ (a[5]));
11
return 0;
12
}