mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-29 03:21:05 +00:00
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@21481 72102866-910b-0410-8b05-ffd578937521
19 lines
464 B
C
19 lines
464 B
C
/* This program will most likely crash on systems that need shorts and ints
|
|
to be word aligned
|
|
Copyright (C) 2005 Free Software Foundation
|
|
|
|
Copying and distribution of this file, with or without modification,
|
|
are permitted in any medium without royalty provided the copyright
|
|
notice and this notice are preserved.
|
|
|
|
*/
|
|
|
|
int main ()
|
|
{
|
|
char buf[12];
|
|
short sval = 4;
|
|
int ival = 3;
|
|
*(short *)(buf+1) = sval;
|
|
*(int *)(buf+1) = ival;
|
|
exit (0);
|
|
}
|