Sign in
gnu
/
gcc
/
cd2fd5facb5e1882d3f338ed456ae9536f7c0593
/
.
/
gcc
/
testsuite
/
gcc.dg
/
Warray-bounds-7.c
blob: a32492ccc7aa0f5e6472e6c0f9113fb66136ca7e [
file
] [
log
] [
blame
]
/* { dg-do compile } */
/* { dg-options "-O2 -Warray-bounds" } */
char
*
p
;
int
main
()
{
p
=
""
;
if
(
p
[
0
]
==
0
||
(
p
[
0
]
==
'_'
&&
p
[
1
]
==
0
))
/* { dg-bogus "array bounds" } */
return
0
;
return
1
;
}