Skip to content

Null function body not handled  #389

@mayagokhale

Description

@mayagokhale

https://github.com/intel/systemc-compiler/blob/main/designs/tests/method/test_fcall.cpp

globFunc1 has no function body, thus in the function definition hcode, the body is omitted. However, an empty body is not accepted by hcode parser. Should the hcode plugin generate a fake return stmt or should the hcode parser accept a null body?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions