test
This commit is contained in:
parent
20debe15f4
commit
77760c98a1
|
@ -0,0 +1,3 @@
|
|||
int addition(int i, int j) {
|
||||
return i + j;
|
||||
}
|
|
@ -0,0 +1,14 @@
|
|||
package main
|
||||
|
||||
/*
|
||||
#include <stdio.h>
|
||||
#include <math.h>
|
||||
|
||||
#include <calc.h>
|
||||
*/
|
||||
import "C"
|
||||
import "fmt"
|
||||
|
||||
func main() {
|
||||
fmt.Println(C.addition(1, 2))
|
||||
}
|
Loading…
Reference in New Issue