summaryrefslogtreecommitdiffstats
path: root/test/dwarf
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-28 13:18:25 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-28 13:18:25 +0000
commit109be507377fe7f6e8819ac94041d3fdcdf6fd2f (patch)
tree2806a689f8fab4a2ec9fc949830ef270a91d667d /test/dwarf
parentInitial commit. (diff)
downloadgolang-1.19-109be507377fe7f6e8819ac94041d3fdcdf6fd2f.tar.xz
golang-1.19-109be507377fe7f6e8819ac94041d3fdcdf6fd2f.zip
Adding upstream version 1.19.8.upstream/1.19.8upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'test/dwarf')
-rw-r--r--test/dwarf/dwarf.dir/main.go32
-rw-r--r--test/dwarf/dwarf.dir/z1.go5
-rw-r--r--test/dwarf/dwarf.dir/z10.go6
-rw-r--r--test/dwarf/dwarf.dir/z11.go4
-rw-r--r--test/dwarf/dwarf.dir/z12.go4
-rw-r--r--test/dwarf/dwarf.dir/z13.go4
-rw-r--r--test/dwarf/dwarf.dir/z14.go4
-rw-r--r--test/dwarf/dwarf.dir/z15.go4
-rw-r--r--test/dwarf/dwarf.dir/z16.go4
-rw-r--r--test/dwarf/dwarf.dir/z17.go4
-rw-r--r--test/dwarf/dwarf.dir/z18.go5
-rw-r--r--test/dwarf/dwarf.dir/z19.go4
-rw-r--r--test/dwarf/dwarf.dir/z2.go4
-rw-r--r--test/dwarf/dwarf.dir/z20.go4
-rw-r--r--test/dwarf/dwarf.dir/z3.go4
-rw-r--r--test/dwarf/dwarf.dir/z4.go4
-rw-r--r--test/dwarf/dwarf.dir/z5.go4
-rw-r--r--test/dwarf/dwarf.dir/z6.go4
-rw-r--r--test/dwarf/dwarf.dir/z7.go4
-rw-r--r--test/dwarf/dwarf.dir/z8.go4
-rw-r--r--test/dwarf/dwarf.dir/z9.go4
-rw-r--r--test/dwarf/dwarf.go10
-rw-r--r--test/dwarf/linedirectives.go83
23 files changed, 209 insertions, 0 deletions
diff --git a/test/dwarf/dwarf.dir/main.go b/test/dwarf/dwarf.dir/main.go
new file mode 100644
index 0000000..175a09c
--- /dev/null
+++ b/test/dwarf/dwarf.dir/main.go
@@ -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()
+}
diff --git a/test/dwarf/dwarf.dir/z1.go b/test/dwarf/dwarf.dir/z1.go
new file mode 100644
index 0000000..7f163e9
--- /dev/null
+++ b/test/dwarf/dwarf.dir/z1.go
@@ -0,0 +1,5 @@
+
+
+//line x1.go:4
+package main
+func F1() {}
diff --git a/test/dwarf/dwarf.dir/z10.go b/test/dwarf/dwarf.dir/z10.go
new file mode 100644
index 0000000..19c7002
--- /dev/null
+++ b/test/dwarf/dwarf.dir/z10.go
@@ -0,0 +1,6 @@
+
+
+
+//line x10.go:4
+package main
+func F10() {}
diff --git a/test/dwarf/dwarf.dir/z11.go b/test/dwarf/dwarf.dir/z11.go
new file mode 100644
index 0000000..c1d2f91
--- /dev/null
+++ b/test/dwarf/dwarf.dir/z11.go
@@ -0,0 +1,4 @@
+
+//line x11.go:4
+package main
+func F11() {}
diff --git a/test/dwarf/dwarf.dir/z12.go b/test/dwarf/dwarf.dir/z12.go
new file mode 100644
index 0000000..7455f18
--- /dev/null
+++ b/test/dwarf/dwarf.dir/z12.go
@@ -0,0 +1,4 @@
+
+//line x12.go:4
+package main
+func F12() {}
diff --git a/test/dwarf/dwarf.dir/z13.go b/test/dwarf/dwarf.dir/z13.go
new file mode 100644
index 0000000..ecb3c4c
--- /dev/null
+++ b/test/dwarf/dwarf.dir/z13.go
@@ -0,0 +1,4 @@
+
+//line x13.go:4
+package main
+func F13() {}
diff --git a/test/dwarf/dwarf.dir/z14.go b/test/dwarf/dwarf.dir/z14.go
new file mode 100644
index 0000000..134b39b
--- /dev/null
+++ b/test/dwarf/dwarf.dir/z14.go
@@ -0,0 +1,4 @@
+
+//line x14.go:4
+package main
+func F14() {}
diff --git a/test/dwarf/dwarf.dir/z15.go b/test/dwarf/dwarf.dir/z15.go
new file mode 100644
index 0000000..d73819b
--- /dev/null
+++ b/test/dwarf/dwarf.dir/z15.go
@@ -0,0 +1,4 @@
+
+//line x15.go:4
+package main
+func F15() {}
diff --git a/test/dwarf/dwarf.dir/z16.go b/test/dwarf/dwarf.dir/z16.go
new file mode 100644
index 0000000..6c31651
--- /dev/null
+++ b/test/dwarf/dwarf.dir/z16.go
@@ -0,0 +1,4 @@
+
+//line x16.go:4
+package main
+func F16() {}
diff --git a/test/dwarf/dwarf.dir/z17.go b/test/dwarf/dwarf.dir/z17.go
new file mode 100644
index 0000000..b742d16
--- /dev/null
+++ b/test/dwarf/dwarf.dir/z17.go
@@ -0,0 +1,4 @@
+
+//line x17.go:4
+package main
+func F17() {}
diff --git a/test/dwarf/dwarf.dir/z18.go b/test/dwarf/dwarf.dir/z18.go
new file mode 100644
index 0000000..84150ff
--- /dev/null
+++ b/test/dwarf/dwarf.dir/z18.go
@@ -0,0 +1,5 @@
+
+
+//line x18.go:4
+package main
+func F18() {}
diff --git a/test/dwarf/dwarf.dir/z19.go b/test/dwarf/dwarf.dir/z19.go
new file mode 100644
index 0000000..bb2e296
--- /dev/null
+++ b/test/dwarf/dwarf.dir/z19.go
@@ -0,0 +1,4 @@
+
+//line x19.go:4
+package main
+func F19() {}
diff --git a/test/dwarf/dwarf.dir/z2.go b/test/dwarf/dwarf.dir/z2.go
new file mode 100644
index 0000000..68bd582
--- /dev/null
+++ b/test/dwarf/dwarf.dir/z2.go
@@ -0,0 +1,4 @@
+
+//line x2.go:4
+package main
+func F2() {}
diff --git a/test/dwarf/dwarf.dir/z20.go b/test/dwarf/dwarf.dir/z20.go
new file mode 100644
index 0000000..03111e1
--- /dev/null
+++ b/test/dwarf/dwarf.dir/z20.go
@@ -0,0 +1,4 @@
+
+//line x20.go:4
+package main
+func F20() {}
diff --git a/test/dwarf/dwarf.dir/z3.go b/test/dwarf/dwarf.dir/z3.go
new file mode 100644
index 0000000..5e4ad3a
--- /dev/null
+++ b/test/dwarf/dwarf.dir/z3.go
@@ -0,0 +1,4 @@
+
+//line x3.go:4
+package main
+func F3() {}
diff --git a/test/dwarf/dwarf.dir/z4.go b/test/dwarf/dwarf.dir/z4.go
new file mode 100644
index 0000000..1f28465
--- /dev/null
+++ b/test/dwarf/dwarf.dir/z4.go
@@ -0,0 +1,4 @@
+
+//line x4.go:4
+package main
+func F4() {}
diff --git a/test/dwarf/dwarf.dir/z5.go b/test/dwarf/dwarf.dir/z5.go
new file mode 100644
index 0000000..7f4eeb4
--- /dev/null
+++ b/test/dwarf/dwarf.dir/z5.go
@@ -0,0 +1,4 @@
+
+//line x5.go:4
+package main
+func F5() {}
diff --git a/test/dwarf/dwarf.dir/z6.go b/test/dwarf/dwarf.dir/z6.go
new file mode 100644
index 0000000..241791d
--- /dev/null
+++ b/test/dwarf/dwarf.dir/z6.go
@@ -0,0 +1,4 @@
+
+//line x6.go:4
+package main
+func F6() {}
diff --git a/test/dwarf/dwarf.dir/z7.go b/test/dwarf/dwarf.dir/z7.go
new file mode 100644
index 0000000..68c1ad0
--- /dev/null
+++ b/test/dwarf/dwarf.dir/z7.go
@@ -0,0 +1,4 @@
+
+//line x7.go:4
+package main
+func F7() {}
diff --git a/test/dwarf/dwarf.dir/z8.go b/test/dwarf/dwarf.dir/z8.go
new file mode 100644
index 0000000..16eed32
--- /dev/null
+++ b/test/dwarf/dwarf.dir/z8.go
@@ -0,0 +1,4 @@
+
+//line x8.go:4
+package main
+func F8() {}
diff --git a/test/dwarf/dwarf.dir/z9.go b/test/dwarf/dwarf.dir/z9.go
new file mode 100644
index 0000000..cbb94b4
--- /dev/null
+++ b/test/dwarf/dwarf.dir/z9.go
@@ -0,0 +1,4 @@
+
+//line x9.go:4
+package main
+func F9() {}
diff --git a/test/dwarf/dwarf.go b/test/dwarf/dwarf.go
new file mode 100644
index 0000000..32dd7d3
--- /dev/null
+++ b/test/dwarf/dwarf.go
@@ -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
diff --git a/test/dwarf/linedirectives.go b/test/dwarf/linedirectives.go
new file mode 100644
index 0000000..cc4ffb0
--- /dev/null
+++ b/test/dwarf/linedirectives.go
@@ -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