https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114982
--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> --- So I was going for the elf semantics here but Mach-O semantics says the function is NOT replacable unless it was weak. Anyways this is just a dg-skip-if for darwin and I will add it with a note saying locally defined functions are not replacable.