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 main()8int 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*-*-* } } } } */ 16