summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/execute/pr34130.c
blob: b528ff22b8a1c662070301a56e38024e4949565b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
extern void abort (void);
int foo (int i)
{
  return -2 * __builtin_abs(i - 2);
}
int main()
{
  if (foo(1) != -2
      || foo(3) != -2)
    abort ();
  return 0;
}