mirror of
https://github.com/golang/go
synced 2024-11-18 16:44:43 -07:00
348181cdd4
Add tests for recently introduced asm error checks in vet. This adds tests for the new warnings about functions that don't store to their return slot before returning or that store to SP-relative addresses in or beyond the argument frame. It also adds a test for leaf function handling on arm, where the link register is not implicitly saved. LGTM=rsc R=rsc CC=adg, golang-codereviews, r https://golang.org/cl/166040044
34 lines
864 B
Go
34 lines
864 B
Go
// Copyright 2010 The Go Authors. All rights reserved.
|
|
// Use of this source code is governed by a BSD-style
|
|
// license that can be found in the LICENSE file.
|
|
|
|
// +build ignore
|
|
|
|
// This file contains declarations to test the assembly in test_asm.s.
|
|
|
|
package testdata
|
|
|
|
func arg1(x int8, y uint8)
|
|
func arg2(x int16, y uint16)
|
|
func arg4(x int32, y uint32)
|
|
func arg8(x int64, y uint64)
|
|
func argint(x int, y uint)
|
|
func argptr(x *byte, y *byte, c chan int, m map[int]int, f func())
|
|
func argstring(x, y string)
|
|
func argslice(x, y []string)
|
|
func argiface(x interface{}, y interface {
|
|
m()
|
|
})
|
|
func returnint() int
|
|
func returnbyte(x int) byte
|
|
func returnnamed(x byte) (r1 int, r2 int16, r3 string, r4 byte)
|
|
func returnintmissing() int
|
|
func leaf(x, y int) int
|
|
|
|
func noprof(x int)
|
|
func dupok(x int)
|
|
func nosplit(x int)
|
|
func rodata(x int)
|
|
func noptr(x int)
|
|
func wrapper(x int)
|