Text file src/cmd/asm/internal/asm/testdata/duperror.s
1 // Copyright 2022 The Go Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style 3 // license that can be found in the LICENSE file. 4 5 TEXT foo(SB), 0, $0 6 RET 7 TEXT foo(SB), 0, $0 // ERROR "symbol foo redeclared" 8 RET 9 10 GLOBL bar(SB), 0, $8 11 GLOBL bar(SB), 0, $8 // ERROR "symbol bar redeclared" 12 13 DATA bar+0(SB)/8, $0 14 DATA bar+0(SB)/8, $0 // ERROR "overlapping DATA entry for bar" 15