Source file test/fixedbugs/issue21120.dir/main.go

     1  // Copyright 2017 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  	"os"
    10  
    11  	"./a"
    12  	"./b"
    13  )
    14  
    15  func main() {
    16  	// Make sure the reflect information for a.S is in the executable.
    17  	_ = a.V()
    18  
    19  	b1 := b.F1()
    20  	b2 := b.F2()
    21  	if b1 != b2 {
    22  		fmt.Printf("%q (from b.F1()) != %q (from b.F2())\n", b1, b2)
    23  		os.Exit(1)
    24  	}
    25  }
    26  

View as plain text