PR c/64856
[official-gcc.git] / gcc / testsuite / gcc.dg / pr44024.c
blob30eb9d1bf80e098b5ea116fa34697d25873e37f6
1 /* { dg-do link } */
2 /* { dg-options "-O1 -fdelete-null-pointer-checks -fdump-tree-ccp1" } */
4 void foo();
5 void link_error (void);
7 int main()
9 if (foo == (void *)0)
10 link_error ();
11 return 0;
14 /* { dg-final { scan-tree-dump-not "if \\(foo" "ccp1" { target { ! avr*-*-* } } } } */
15 /* { dg-final { cleanup-tree-dump "ccp1" } } */