Source file misc/swig/stdio/file.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  // This file is here just to cause problems.
     6  // file.swig turns into a file also named file.go.
     7  // Make sure cmd/go keeps them separate
     8  // when both are passed to cgo.
     9  
    10  package file
    11  
    12  //int F(void) { return 1; }
    13  import "C"
    14  
    15  func F() int { return int(C.F()) }
    16  

View as plain text