blob: 666e96f968ac677aa27fb8c63ee30a724025263d [file] [log] [blame]
int val;
int *ptr = &val;
float *ptr2 = &val;
__attribute__((optimize ("-fno-strict-aliasing")))
typepun ()
{
*ptr2=0;
}
main()
{
*ptr=1;
typepun ();
if (*ptr)
__builtin_abort ();
}