Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Global functions do not have function body #361

Open
zhuanhao-wu opened this issue Sep 6, 2022 · 0 comments
Open

Global functions do not have function body #361

zhuanhao-wu opened this issue Sep 6, 2022 · 0 comments

Comments

@zhuanhao-wu
Copy link
Collaborator

zhuanhao-wu commented Sep 6, 2022

From https://github.com/intel/systemc-compiler/blob/main/tests/method/test_empty_sensvty4_fail.cpp
(A similar issue in https://github.com/intel/systemc-compiler/blob/main/tests/method/test_fcall_const_eval2.cpp)
/systemc-compiler/tests/method/test_generic_fcall.cpp

Note: we currently do not have support for global functions.

void glob_f() {}
bool glob_g() {return 1;}


hFunction glob_f_func_3 [
  hFunctionRetType  NONAME [
    hTypeinfo  NONAME [
      hType void NOLIST
    ]
  ]
]
hFunction glob_g_func_2 [
  hFunctionRetType  NONAME [
    hTypeinfo  NONAME [
      hType bool NOLIST
    ]
  ]
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant