aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/torture/pr70450.c
blob: ee5e24d0522402ff60f1e83e400aa2ebe8c12627 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/* { dg-do run } */
/* { dg-require-effective-target lp64 } */

unsigned long int a = 2UL;
int b = 2;
unsigned long int c = 2UL;

void foo ()
{
  c = 2 * ((2 * a) * (2 * (-b)));
}

int main ()
{
  foo();
  if (c != 18446744073709551584UL)
    __builtin_abort();
  return 0;
}