aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/c-c++-common/pr96369.c
blob: 8c468d9fec2f1a32467ecb4950a3a02ad395d73c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
/* { dg-do compile } */
/* { dg-options "-O" } */

int main()
{
  const long ONE = 1L;
  long y = 0L;
  long x = ((long) (ONE || (y = 1L)) % 8L);
  if (y != 0)
    __builtin_abort ();
  return 0;
}