1 package main
2
3 import "cmd/cgo/internal/testsanitizers/testdata/asan_linkerx/p"
4
5 func pstring(s *string) {
6 println(*s)
7 }
8
9 func main() {
10 all := []*string{
11 &S1, &S2, &S3, &S4, &S5, &S6, &S7, &S8, &S9, &S10,
12 &p.S1, &p.S2, &p.S3, &p.S4, &p.S5, &p.S6, &p.S7, &p.S8, &p.S9, &p.S10,
13 }
14 for _, ps := range all {
15 pstring(ps)
16 }
17 }
18
19 var S1 string
20 var S2 string
21 var S3 string
22 var S4 string
23 var S5 string
24 var S6 string
25 var S7 string
26 var S8 string
27 var S9 string
28 var S10 string
29
View as plain text