OSDN Git Service

2008-05-20 Richard Guenther <rguenther@suse.de>
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / gcc.c-torture / execute / 20050131-1.c
1 /* Verify that we do not lose side effects on a MOD expression.  */
2
3 #include <stdlib.h>
4 #include <stdio.h>
5
6 int
7 foo (int a)
8 {
9   int x = 0 % a++;
10   return a;
11 }
12
13 main()
14 {
15   if (foo (9) != 10)
16     abort ();
17   exit (0);
18 }