aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/compile/addcc.c
blob: 307bd5cc4148052e0f8c6a51878cb0fbe48b8405 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/* { dg-additional-options "-std=gnu89" } */

foo (p, a, b)
     int *p;
     int a;
     int b;
{

  a += p[0];
  b += p[1];
  if (a == 0)
    return b;
  return a;
}


bar (a)
{
  return -a > 0 ? 1 : 2;
}