summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/execute/pr34070-2.c
blob: 4c1ce7b0231f018a1f1f96414a3515a990ac4305 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
extern void abort (void);

int f(unsigned int x, int n)
{
    return ((int)x) / (1 << n);
}

int main()
{
  if (f(-1, 1) != 0)
    abort ();
  return 0;
}