Disallowed patterns in extern fn declarations.

Closes #10877