rui314 / 8cc

A Small C Compiler
MIT License
6.12k stars 742 forks source link

Fix values of function designators #81

Closed shinh closed 7 years ago

shinh commented 7 years ago

Before this patch, functions without an unary & didn't have any values.

I'm not 100% sure if this is a right thing to do, but it seems to fix a few cases at least.

rui314 commented 7 years ago

I think this is correct. foo and &foo mean the same if foo is a function designator.