summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pr94002.c
blob: 05a02f3f15bf6315e9ed380e23b617a25f1eb3b1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
/* PR rtl-optimization/94002 */
/* { dg-do compile } */
/* { dg-options "-O1 -fno-tree-dce -fno-tree-reassoc" } */
/* { dg-additional-options "-fPIC" { target fpic } } */

unsigned a, b;

void
foo (void)
{
  __builtin_sub_overflow (b, 44852956282LL, &a);
  a += ~b;
}