gllvm/tests/entry_test.go

20 lines
343 B
Go
Raw Permalink Normal View History

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