summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/torture/pr80341.c
blob: c9e12396d0775ba19e2cdf75834472e9848bdc28 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/* { dg-do run } */
/* { dg-additional-options "-Wno-overflow" } */
/* { dg-require-effective-target int32plus } */

const signed char c = -84;
signed char s;

void
foo ()
{
  s = (unsigned short) c / -55;
}

int
main ()
{
  foo ();
  if (s != 90)
    __builtin_abort ();
}