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
PR middle-end/77357 - strlen of constant strings not folded
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.dg
/
pr70747.c
blob
0fca7ebd97f453d38924ed3a2edf3d8465189592
1
/* { dg-do compile } */
2
/* { dg-options "-pedantic" } */
3
4
int
*
a
,
b
;
5
6
void
fn1
()
7
{
8
a
=
__builtin_malloc
(
sizeof
(
int
)*
2
);
9
b
= &
a
[
1
] == (
0
,
0
);
/* { dg-warning "comparison between pointer and integer" } */
10
}