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