go source for verification 2026-05-22
This commit is contained in:
32
test/dwarf/dwarf.dir/main.go
Normal file
32
test/dwarf/dwarf.dir/main.go
Normal file
@@ -0,0 +1,32 @@
|
||||
// $G $D/$F.go $D/z*.go && $L $F.$A && ./$A.out
|
||||
|
||||
// NOTE: This test is not run by 'run.go' and so not run by all.bash.
|
||||
// To run this test you must use the ./run shell script.
|
||||
|
||||
// Copyright 2009 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.
|
||||
|
||||
package main
|
||||
func main() {
|
||||
F1()
|
||||
F2()
|
||||
F3()
|
||||
F4()
|
||||
F5()
|
||||
F6()
|
||||
F7()
|
||||
F8()
|
||||
F9()
|
||||
F10()
|
||||
F11()
|
||||
F12()
|
||||
F13()
|
||||
F14()
|
||||
F15()
|
||||
F16()
|
||||
F17()
|
||||
F18()
|
||||
F19()
|
||||
F20()
|
||||
}
|
||||
5
test/dwarf/dwarf.dir/z1.go
Normal file
5
test/dwarf/dwarf.dir/z1.go
Normal file
@@ -0,0 +1,5 @@
|
||||
|
||||
|
||||
//line x1.go:4
|
||||
package main
|
||||
func F1() {}
|
||||
6
test/dwarf/dwarf.dir/z10.go
Normal file
6
test/dwarf/dwarf.dir/z10.go
Normal file
@@ -0,0 +1,6 @@
|
||||
|
||||
|
||||
|
||||
//line x10.go:4
|
||||
package main
|
||||
func F10() {}
|
||||
4
test/dwarf/dwarf.dir/z11.go
Normal file
4
test/dwarf/dwarf.dir/z11.go
Normal file
@@ -0,0 +1,4 @@
|
||||
|
||||
//line x11.go:4
|
||||
package main
|
||||
func F11() {}
|
||||
4
test/dwarf/dwarf.dir/z12.go
Normal file
4
test/dwarf/dwarf.dir/z12.go
Normal file
@@ -0,0 +1,4 @@
|
||||
|
||||
//line x12.go:4
|
||||
package main
|
||||
func F12() {}
|
||||
4
test/dwarf/dwarf.dir/z13.go
Normal file
4
test/dwarf/dwarf.dir/z13.go
Normal file
@@ -0,0 +1,4 @@
|
||||
|
||||
//line x13.go:4
|
||||
package main
|
||||
func F13() {}
|
||||
4
test/dwarf/dwarf.dir/z14.go
Normal file
4
test/dwarf/dwarf.dir/z14.go
Normal file
@@ -0,0 +1,4 @@
|
||||
|
||||
//line x14.go:4
|
||||
package main
|
||||
func F14() {}
|
||||
4
test/dwarf/dwarf.dir/z15.go
Normal file
4
test/dwarf/dwarf.dir/z15.go
Normal file
@@ -0,0 +1,4 @@
|
||||
|
||||
//line x15.go:4
|
||||
package main
|
||||
func F15() {}
|
||||
4
test/dwarf/dwarf.dir/z16.go
Normal file
4
test/dwarf/dwarf.dir/z16.go
Normal file
@@ -0,0 +1,4 @@
|
||||
|
||||
//line x16.go:4
|
||||
package main
|
||||
func F16() {}
|
||||
4
test/dwarf/dwarf.dir/z17.go
Normal file
4
test/dwarf/dwarf.dir/z17.go
Normal file
@@ -0,0 +1,4 @@
|
||||
|
||||
//line x17.go:4
|
||||
package main
|
||||
func F17() {}
|
||||
5
test/dwarf/dwarf.dir/z18.go
Normal file
5
test/dwarf/dwarf.dir/z18.go
Normal file
@@ -0,0 +1,5 @@
|
||||
|
||||
|
||||
//line x18.go:4
|
||||
package main
|
||||
func F18() {}
|
||||
4
test/dwarf/dwarf.dir/z19.go
Normal file
4
test/dwarf/dwarf.dir/z19.go
Normal file
@@ -0,0 +1,4 @@
|
||||
|
||||
//line x19.go:4
|
||||
package main
|
||||
func F19() {}
|
||||
4
test/dwarf/dwarf.dir/z2.go
Normal file
4
test/dwarf/dwarf.dir/z2.go
Normal file
@@ -0,0 +1,4 @@
|
||||
|
||||
//line x2.go:4
|
||||
package main
|
||||
func F2() {}
|
||||
4
test/dwarf/dwarf.dir/z20.go
Normal file
4
test/dwarf/dwarf.dir/z20.go
Normal file
@@ -0,0 +1,4 @@
|
||||
|
||||
//line x20.go:4
|
||||
package main
|
||||
func F20() {}
|
||||
4
test/dwarf/dwarf.dir/z3.go
Normal file
4
test/dwarf/dwarf.dir/z3.go
Normal file
@@ -0,0 +1,4 @@
|
||||
|
||||
//line x3.go:4
|
||||
package main
|
||||
func F3() {}
|
||||
4
test/dwarf/dwarf.dir/z4.go
Normal file
4
test/dwarf/dwarf.dir/z4.go
Normal file
@@ -0,0 +1,4 @@
|
||||
|
||||
//line x4.go:4
|
||||
package main
|
||||
func F4() {}
|
||||
4
test/dwarf/dwarf.dir/z5.go
Normal file
4
test/dwarf/dwarf.dir/z5.go
Normal file
@@ -0,0 +1,4 @@
|
||||
|
||||
//line x5.go:4
|
||||
package main
|
||||
func F5() {}
|
||||
4
test/dwarf/dwarf.dir/z6.go
Normal file
4
test/dwarf/dwarf.dir/z6.go
Normal file
@@ -0,0 +1,4 @@
|
||||
|
||||
//line x6.go:4
|
||||
package main
|
||||
func F6() {}
|
||||
4
test/dwarf/dwarf.dir/z7.go
Normal file
4
test/dwarf/dwarf.dir/z7.go
Normal file
@@ -0,0 +1,4 @@
|
||||
|
||||
//line x7.go:4
|
||||
package main
|
||||
func F7() {}
|
||||
4
test/dwarf/dwarf.dir/z8.go
Normal file
4
test/dwarf/dwarf.dir/z8.go
Normal file
@@ -0,0 +1,4 @@
|
||||
|
||||
//line x8.go:4
|
||||
package main
|
||||
func F8() {}
|
||||
4
test/dwarf/dwarf.dir/z9.go
Normal file
4
test/dwarf/dwarf.dir/z9.go
Normal file
@@ -0,0 +1,4 @@
|
||||
|
||||
//line x9.go:4
|
||||
package main
|
||||
func F9() {}
|
||||
10
test/dwarf/dwarf.go
Normal file
10
test/dwarf/dwarf.go
Normal file
@@ -0,0 +1,10 @@
|
||||
// rundir
|
||||
|
||||
// Copyright 2009 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.
|
||||
|
||||
// See issue 2241 and issue 1878: dwarf include stack size
|
||||
// issues in linker.
|
||||
|
||||
package ignored
|
||||
83
test/dwarf/linedirectives.go
Normal file
83
test/dwarf/linedirectives.go
Normal file
@@ -0,0 +1,83 @@
|
||||
// run
|
||||
|
||||
// Copyright 2011 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.
|
||||
|
||||
//line foo/bar.y:4
|
||||
package main
|
||||
//line foo/bar.y:60
|
||||
func main() {
|
||||
//line foo/bar.y:297
|
||||
f, l := 0, 0
|
||||
//line yacctab:1
|
||||
f, l = 1, 1
|
||||
//line yaccpar:1
|
||||
f, l = 2, 1
|
||||
//line foo/bar.y:82
|
||||
f, l = 3, 82
|
||||
//line foo/bar.y:90
|
||||
f, l = 3, 90
|
||||
//line foo/bar.y:92
|
||||
f, l = 3, 92
|
||||
//line foo/bar.y:100
|
||||
f, l = 3, 100
|
||||
//line foo/bar.y:104
|
||||
l = 104
|
||||
//line foo/bar.y:112
|
||||
l = 112
|
||||
//line foo/bar.y:117
|
||||
l = 117
|
||||
//line foo/bar.y:121
|
||||
l = 121
|
||||
//line foo/bar.y:125
|
||||
l = 125
|
||||
//line foo/bar.y:133
|
||||
l = 133
|
||||
//line foo/bar.y:146
|
||||
l = 146
|
||||
//line foo/bar.y:148
|
||||
//line foo/bar.y:153
|
||||
//line foo/bar.y:155
|
||||
l = 155
|
||||
//line foo/bar.y:160
|
||||
|
||||
//line foo/bar.y:164
|
||||
//line foo/bar.y:173
|
||||
|
||||
//line foo/bar.y:178
|
||||
//line foo/bar.y:180
|
||||
//line foo/bar.y:185
|
||||
//line foo/bar.y:195
|
||||
//line foo/bar.y:197
|
||||
//line foo/bar.y:202
|
||||
//line foo/bar.y:204
|
||||
//line foo/bar.y:208
|
||||
//line foo/bar.y:211
|
||||
//line foo/bar.y:213
|
||||
//line foo/bar.y:215
|
||||
//line foo/bar.y:217
|
||||
//line foo/bar.y:221
|
||||
//line foo/bar.y:229
|
||||
//line foo/bar.y:236
|
||||
//line foo/bar.y:238
|
||||
//line foo/bar.y:240
|
||||
//line foo/bar.y:244
|
||||
//line foo/bar.y:249
|
||||
//line foo/bar.y:253
|
||||
//line foo/bar.y:257
|
||||
//line foo/bar.y:262
|
||||
//line foo/bar.y:267
|
||||
//line foo/bar.y:272
|
||||
if l == f {
|
||||
//line foo/bar.y:277
|
||||
panic("aie!")
|
||||
//line foo/bar.y:281
|
||||
}
|
||||
//line foo/bar.y:285
|
||||
return
|
||||
//line foo/bar.y:288
|
||||
//line foo/bar.y:290
|
||||
}
|
||||
//line foo/bar.y:293
|
||||
//line foo/bar.y:295
|
||||
Reference in New Issue
Block a user