3 // Copyright 2014 The Go Authors. All rights reserved.
4 // Use of this source code is governed by a BSD-style
5 // license that can be found in the LICENSE file.
7 // Check that {5,6,8,9}g/ggen.c:clearfat is zeroing the entire object.
21 var decls, calls bytes.Buffer
23 for i := 1; i <= ntest; i++ {
25 decls.WriteString(strings.Replace(decl, "$", s, -1))
26 calls.WriteString(strings.Replace("poison$()\n\tclearfat$()\n\t", "$", s, -1))
29 program = strings.Replace(program, "$DECLS", decls.String(), 1)
30 program = strings.Replace(program, "$CALLS", calls.String(), 1)
34 var program = `package main
43 println("failed", count, "case(s)")
50 // Grow and poison the stack space that will be used by clearfat$
62 // println("clearfat$: index", i, "expected 0, got", x)