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
bpf: avoid possible null deref in btf_ext_output [PR target/117447]
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.dg
/
pr44024.c
blob
3bcf4311c747d113a9b2a33a4faa5cd4b6620be6
1
/* { dg-do link } */
2
/* { dg-options "-O1 -fdelete-null-pointer-checks -fdump-tree-ccp1" } */
3
/* { dg-skip-if "" keeps_null_pointer_checks } */
4
5
void
foo
();
6
void
link_error
(
void
);
7
8
int
main
()
9
{
10
if
(
foo
== (
void
*)
0
)
11
link_error
();
12
return
0
;
13
}
14
15
/* { dg-final { scan-tree-dump-not "if \\(foo" "ccp1" { target { ! avr*-*-* } } } } */