1 2 3 4 5 6 7 8 9 10 11 12 13 14
/* { dg-do link } */ /* { dg-options "-fdelete-null-pointer-checks -fdump-tree-original" } */ void foo(); int main() { if (foo == (void *)0) link_error (); return 0; } /* { dg-final { scan-tree-dump-not "foo" "original" } } */ /* { dg-final { cleanup-tree-dump "original" } } */