gllvm/tests/entry_test.go
2019-10-22 17:53:26 +00:00

20 lines
343 B
Go

package test
import (
"fmt"
"github.com/SRI-CSL/gllvm/shared"
"testing"
)
func Test_basic(t *testing.T) {
args := []string{"../data/helloworld.c", "-o", "../data/hello"}
exitCode := shared.Compile(args, "clang")
if exitCode != 0 {
t.Errorf("Compile of %v returned %v\n", args, exitCode)
} else {
fmt.Println("Compiled OK")
}
}