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
c++: Fix get_member_function_from_ptrfunc with -fsanitize=bounds [PR116449]
[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
}