From 8d110a392a032f6b9adf90898778881d710db3ec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Motiejus=20Jak=C5=A1tys?= Date: Sat, 5 Feb 2022 16:28:20 +0200 Subject: [PATCH] fcntl64 test Refs https://github.com/ziglang/zig/issues/9485 --- test/go/hello.go | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/test/go/hello.go b/test/go/hello.go index 5235bed..7534209 100644 --- a/test/go/hello.go +++ b/test/go/hello.go @@ -1,12 +1,15 @@ package main +// #define _FILE_OFFSET_BITS 64 +// #include +// #include // #include // char* hello() { return "hello, world"; } -// void printhello() { printf("%s\n", hello()); } +// void phello() { printf("%s, your lucky number is %p\n", hello(), fcntl); } import "C" func main() { - C.printhello() + C.phello() } func Chello() string {