https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69246
--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Cleaned up simplified testcase: typedef void (__attribute__ ((stdcall)) *T) (int); T a; void __attribute__ ((stdcall)) foo (int x) { a (x); }