projects
/
platform
/
upstream
/
gcc48.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
remove unused files
[platform/upstream/gcc48.git]
/
gcc
/
testsuite
/
gcc.dg
/
pr44061.c
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
}