Skip to content

Commit

Permalink
adds a test case
Browse files Browse the repository at this point in the history
  • Loading branch information
ringabout committed Jan 15, 2025
1 parent 465d283 commit a51ea25
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/nimony/sysbasics/foo.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
int myFunc() {
return 12;
}
6 changes: 6 additions & 0 deletions tests/nimony/sysbasics/tcompile.nim
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{.compile: "tests/nimony/sysbasics/foo.c".}
# TODO: stores filename in the deps so that relative paths work

proc myFunc(): int {.importc: "myFunc".}

let s = myFunc()

0 comments on commit a51ea25

Please sign in to comment.