On Mon, Jun 22, 2009 at 12:04:49PM +0800, Adrian Chadd wrote:
I agree with you. Nothing like side effects to screw up
a persons clang.
#include <stdio.h>
#include <stdlib.h>
static int
side_effect(int *i)
{
*i = 42;
return 0;
}
int
main(void)
{
int i;
if (side_effect(&i));
if (i == 42)
printf("%d\n", i);
return 0;
}
--
Steve
_______________________________________________
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org"