aboutsummaryrefslogtreecommitdiff
path: root/src/pkg/html/template/clone_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/pkg/html/template/clone_test.go')
-rw-r--r--src/pkg/html/template/clone_test.go7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/pkg/html/template/clone_test.go b/src/pkg/html/template/clone_test.go
index c612775d4f..5907ff2c3e 100644
--- a/src/pkg/html/template/clone_test.go
+++ b/src/pkg/html/template/clone_test.go
@@ -113,3 +113,10 @@ func TestClone(t *testing.T) {
t.Errorf("t3: got %q want %q", got, want)
}
}
+
+// This used to crash; http://golang.org/issue/3281
+func TestCloneCrash(t *testing.T) {
+ t1 := New("all")
+ Must(t1.New("t1").Parse(`{{define "foo"}}foo{{end}}`))
+ t1.Clone()
+}