Imported Upstream version 4.8.1
[platform/upstream/gcc48.git] / gcc / testsuite / go.test / test / interface / private1.go
1 // skip # used by private.go
2
3 // Copyright 2011 The Go Authors. All rights reserved.
4 // Use of this source code is governed by a BSD-style
5 // license that can be found in the LICENSE file.
6
7 // Imported by private.go, which should not be able to see the private method.
8
9 package p
10
11 type Exported interface {
12         private()
13 }
14
15 type Implementation struct{}
16
17 func (p *Implementation) private() {}
18
19 var X = new(Implementation)
20