Skip to content

Unexpected crash with mif and cto functions #199

@ChengCat

Description

@ChengCat

The following program will crash, but it works fine if I remove (attr cto).

(import cstdio)
(def f (fn (attr cto) intern bool (void)
  true))
(def main (fn extern-c int (void)
  (printf "%d\n" (mif (f) 1 2))))

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