]> Cypherpunks.ru repositories - gostls13.git/blob - misc/cgo/testsanitizers/testdata/asan_global5.go
0ed103da4f2e8d7e60480d666f441d563353f27b
[gostls13.git] / misc / cgo / testsanitizers / testdata / asan_global5.go
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 package main
6
7 import (
8         "fmt"
9 )
10
11 type Any struct {
12         s string
13         b int64
14 }
15
16 var Sg = []interface{}{
17         Any{"a", 10},
18 }
19
20 func main() {
21         fmt.Println(Sg[0])
22 }