Skip to content

Calling nonexisting function causes all contract function to no-op #148

@SebastienGllmt

Description

@SebastienGllmt

If you call a function that doens't exist, the program still compiles however it seems calling any function does nothing.

Here is a repro


define public @"testBad()"() {
entry:
// note that there is no function called foo in this contract
  %temp = call @foo()
}

define public @"getVal()"() {
entry:
// calling this function returns nothing
  ret 0x0100
}

define @init() {
entry:
  ret void
}

}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions