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
2013-10-21 Richard Biener <rguenther@suse.de>
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.dg
/
pr44061.c
blob
60a4260ae94c3257e9c9b37a945b1f654809ea39
1
/* { dg-do compile } */
2
/* { dg-options "-O2 -Wall" } */
3
4
int
a
[
2
];
5
int
foo
(
int
q
)
6
{
7
if
(
__builtin_constant_p
(
q
))
8
{
9
if
(
q
==
4
)
10
return
a
[
4
];
/* { dg-bogus "array subscript is above array bounds" } */
11
else
12
return
a
[
0
];
13
}
14
else
15
return
a
[
q
];
16
}