File: testDoubleWordAlignment.c

package info (click to toggle)
squeak-vm 1%3A4.10.2.2614-4.1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 13,284 kB
  • ctags: 15,344
  • sloc: ansic: 75,096; cs: 11,191; objc: 5,494; sh: 3,170; asm: 1,533; cpp: 449; pascal: 372; makefile: 366; awk: 103
file content (12 lines) | stat: -rw-r--r-- 221 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
int f(void *i)
{
  *(double *)i= *(double *)(i + 4);
  return *(char *)i;
}

int main()
{
  char b[12];
  b[0]=1; b[1]=2; b[2]=3; b[3]=4; b[4]=0; b[5]=0; b[6]=0; b[7]=0; b[8]=0; b[9]=0; b[10]=0; b[11]=0;
  return f(b);
}