github.com/nspcc-dev/neo-go@v0.105.2-0.20240517133400-6be757af3eba/pkg/compiler/testdata/globalvar/nested2/main.go (about)

     1  package nested2
     2  
     3  // Unused shouldn't produce any code if unused.
     4  var Unused = 21
     5  
     6  // Argument is an argument used from external package to call nested1.f.
     7  var Argument = 22
     8  
     9  // A has the same name as nested1.A.
    10  var A = 23
    11  
    12  // B should produce call to f and be DROPped if unused.
    13  var B = f()
    14  
    15  // Unique has unique name.
    16  var Unique = 24
    17  
    18  func f() int {
    19  	return 25
    20  }