summary refs log tree commit diff stats
path: root/tests/manyloc/standalone/barebone.nim
blob: 0b38616b2d7c074a7db95dd377429cbdb7c569f5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
discard """
ccodecheck: "\\i !@('systemInit')"
ccodecheck: "\\i !@('systemDatInit')"
output: "hello"
"""
# bug  #2041: Macros need to be available for os:standalone!
import macros

proc printf(frmt: cstring) {.varargs, header: "<stdio.h>", cdecl.}

var x = 0
inc x
printf("hi %ld\n", x+4777)