summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pr38615.c
blob: 8a818a11fb36c7b6c5d83ba54ea45fae6773ea56 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/* { dg-do run } */

int t;
extern void abort (void);

int f(int t, const int *a)
{
 const int b[] = { 1, 2, 3};
 if (!t)
   return f(1, b);
 return b == a;
}

int main(void)
{
 if (f(0, 0))
   abort ();
 return 0;
}