diff options
Diffstat (limited to 'gcc/testsuite/gcc.dg/pr38615.c')
-rw-r--r-- | gcc/testsuite/gcc.dg/pr38615.c | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/pr38615.c b/gcc/testsuite/gcc.dg/pr38615.c new file mode 100644 index 000000000..8a818a11f --- /dev/null +++ b/gcc/testsuite/gcc.dg/pr38615.c @@ -0,0 +1,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; +} |