mirror of https://github.com/status-im/xgo.git
18 lines
301 B
Go
18 lines
301 B
Go
// Go cross compiler (xgo): Test file for embedded C snippets.
|
|
// Copyright (c) 2015 Péter Szilágyi. All rights reserved.
|
|
//
|
|
// Released under the MIT license.
|
|
|
|
package main
|
|
|
|
// #include <stdio.h>
|
|
//
|
|
// void sayHi() {
|
|
// printf("Hello, embedded C!\n");
|
|
// }
|
|
import "C"
|
|
|
|
func main() {
|
|
C.sayHi()
|
|
}
|