summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pr64807.c
blob: e1bd604be007aafe87b07bc41d19dbce9baf4b83 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/* PR tree-optimization/64807 */
/* { dg-do run { target int128 } } */
/* { dg-options "-O2" } */

__uint128_t
foo (void)
{
  __uint128_t a = -1;
  __uint128_t b = -1;
  return a / b;
}

int
main ()
{
  if (foo () != 1)
    __builtin_abort ();
  return 0;
}