summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.other/array5.C
blob: e32bbea5a08bf84673ede85ec315f4082ac6f4c2 (plain)
1
2
3
4
5
6
7
8
9
10
// { dg-do assemble  }
// We tried to create a temporary of unknown size and crashed.

extern int a1[];
extern int a2[];
int foo(int p)
{
  int x = (p ? a1 : a2)[1];
  return x;
}