TestErrAlloca
This commit is contained in:
@@ -25,6 +25,16 @@ import (
|
||||
"golang.org/x/tools/go/ssa"
|
||||
)
|
||||
|
||||
func TestErrAlloca(t *testing.T) {
|
||||
defer func() {
|
||||
if r := recover(); r == nil {
|
||||
t.Fatal("alloca: no error?")
|
||||
}
|
||||
}()
|
||||
var ctz context
|
||||
ctz.alloca(nil, nil)
|
||||
}
|
||||
|
||||
func TestCStrNoArgs(t *testing.T) {
|
||||
defer func() {
|
||||
if r := recover(); r == nil {
|
||||
|
||||
Reference in New Issue
Block a user