mirror of
git://gcc.gnu.org/git/gcc.git
synced 2024-12-21 12:29:25 +08:00
New.
[[Split portion of a mixed commit.]] From-SVN: r41230.2
This commit is contained in:
parent
c57718d3fe
commit
45b6f9c99d
10
gcc/testsuite/g++.old-deja/g++.other/array5.C
Normal file
10
gcc/testsuite/g++.old-deja/g++.other/array5.C
Normal file
@ -0,0 +1,10 @@
|
||||
// Build don't link:
|
||||
// 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;
|
||||
}
|
Loading…
Reference in New Issue
Block a user