RISC-V: Describe -march behavior for dependent extensions
[official-gcc.git] / gcc / testsuite / gcc.c-torture / execute / 20050131-1.c
bloba0d6ec56be6e648e098f2610f0eca18be2311cee
1 /* Verify that we do not lose side effects on a MOD expression. */
3 #include <stdlib.h>
4 #include <stdio.h>
6 int
7 foo (int a)
9 int x = 0 % a++;
10 return a;
13 int
14 main(void)
16 if (foo (9) != 10)
17 abort ();
18 exit (0);