Merge pull request #2216 from acqn/FuncDefFix

[cc65] Type category in a function definition cannot be inherited from a typedef
This commit is contained in:
Bob Andrews
2023-10-08 18:58:29 +02:00
committed by GitHub
3 changed files with 40 additions and 10 deletions

View File

@@ -0,0 +1,6 @@
/* Bug #2020 - ISO/IEC 9899:1999 (E), 6.9.1 footnote 137:
** "The intent is that the type category in a function definition cannot be inherited from a typedef"
*/
typedef void F(void);
F c { } /* Should fail */