repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
libstdc++: Fix -Wsign-compare warning in std::string::resize_for_overwrite
[official-gcc.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.other
/
array5.C
blob
e32bbea5a08bf84673ede85ec315f4082ac6f4c2
1
// { dg-do assemble }
2
// We tried to create a temporary of unknown size and crashed.
3
4
extern int a1[];
5
extern int a2[];
6
int foo(int p)
7
{
8
int x = (p ? a1 : a2)[1];
9
return x;
10
}