Skip to content

Instantly share code, notes, and snippets.

@steeve
Created October 7, 2013 18:13
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save steeve/6872454 to your computer and use it in GitHub Desktop.
When run on Windows/386, outputs values like "4603183328" instead of "1".
package main
// #include <stdio.h>
// #include <stdint.h>
// int64_t get(int n)
// {
// return 1;
// }
import "C"
import (
"fmt"
)
func main() {
fmt.Println(C.get(1))
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment