diff options
Diffstat (limited to 'tests/misc/temit.nim')
-rw-r--r-- | tests/misc/temit.nim | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/tests/misc/temit.nim b/tests/misc/temit.nim deleted file mode 100644 index ee7455d4c..000000000 --- a/tests/misc/temit.nim +++ /dev/null @@ -1,15 +0,0 @@ -discard """ - output: "509" -""" -# Test the new ``emit`` pragma: - -{.emit: """ -static int cvariable = 420; - -""".} - -proc embedsC() = - var nimVar = 89 - {.emit: """printf("%d\n", cvariable + (int)`nimVar`);""".} - -embedsC() |