mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-03 18:47:47 +00:00
14 lines
200 B
Go
14 lines
200 B
Go
package main
|
|
|
|
/*
|
|
#include <stdint.h>
|
|
int32_t fortytwo(void);
|
|
int32_t mul(int32_t a, int32_t b);
|
|
*/
|
|
import "C"
|
|
|
|
func main() {
|
|
println("fortytwo:", C.fortytwo())
|
|
println("mul:", C.mul(int32(3), 5))
|
|
}
|