mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
[dev.ssa] cmd/compile/internal/ssa: Add dummy frontend for testing.
Change-Id: Ica26c0297ac7afeb0b5b668cf5f5cd1667c6cc43 Reviewed-on: https://go-review.googlesource.com/10699 Reviewed-by: Josh Bleecher Snyder <josharian@gmail.com>
This commit is contained in:
parent
f7f604e284
commit
1114a76ae6
3 changed files with 11 additions and 5 deletions
|
|
@ -7,7 +7,7 @@ package ssa
|
|||
import "testing"
|
||||
|
||||
func TestDeadLoop(t *testing.T) {
|
||||
c := NewConfig("amd64")
|
||||
c := NewConfig("amd64", DummyFrontend{})
|
||||
fun := Fun(c, "entry",
|
||||
Bloc("entry",
|
||||
Valu("mem", OpArg, TypeMem, ".mem"),
|
||||
|
|
@ -37,7 +37,7 @@ func TestDeadLoop(t *testing.T) {
|
|||
}
|
||||
|
||||
func TestDeadValue(t *testing.T) {
|
||||
c := NewConfig("amd64")
|
||||
c := NewConfig("amd64", DummyFrontend{})
|
||||
fun := Fun(c, "entry",
|
||||
Bloc("entry",
|
||||
Valu("mem", OpArg, TypeMem, ".mem"),
|
||||
|
|
@ -60,7 +60,7 @@ func TestDeadValue(t *testing.T) {
|
|||
}
|
||||
|
||||
func TestNeverTaken(t *testing.T) {
|
||||
c := NewConfig("amd64")
|
||||
c := NewConfig("amd64", DummyFrontend{})
|
||||
fun := Fun(c, "entry",
|
||||
Bloc("entry",
|
||||
Valu("cond", OpConst, TypeBool, false),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue