summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/execute/pr23047.c
blob: 7557fc2beca12a6a9885b44d4845179f83a4ac6d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#include <limits.h>
extern void abort ();
extern void exit (int);
void f(int i)
{
  i = i > 0 ? i : -i;
  if (i<0)
    return;
  abort ();
}

int main(int argc, char *argv[])
{
  f(INT_MIN);
  exit (0);
}