1 /* { dg-run } */
2 /* { dg-require-effective-target int32plus } */
3
4 int
main()5 main ()
6 {
7 volatile int a = 0;
8 long long b = 2147483648LL;
9 int c = a % 2;
10 int x = ((int) -b + c) % -2147483647;
11 if (x != -1)
12 __builtin_abort ();
13 return 0;
14 }
15