delete export
TBR=r
OCL=23121
CL=23127
diff --git a/test/fixedbugs/bug007.go b/test/fixedbugs/bug007.go
index 992276c..bd970de 100644
--- a/test/fixedbugs/bug007.go
+++ b/test/fixedbugs/bug007.go
@@ -6,7 +6,7 @@
package main
-export type (
+type (
Point struct { x, y float };
Polar Point
)
diff --git a/test/fixedbugs/bug011.go b/test/fixedbugs/bug011.go
index aaa920a..63673c0 100644
--- a/test/fixedbugs/bug011.go
+++ b/test/fixedbugs/bug011.go
@@ -7,7 +7,7 @@
package main
-export type T struct {
+type T struct {
x, y int;
}
diff --git a/test/fixedbugs/bug023.go b/test/fixedbugs/bug023.go
index 6a189b4..cce8c45 100644
--- a/test/fixedbugs/bug023.go
+++ b/test/fixedbugs/bug023.go
@@ -6,11 +6,11 @@
package main
-export type Type interface {
+type Type interface {
TypeName() string;
}
-export type TInt struct {
+type TInt struct {
}
// TInt
diff --git a/test/fixedbugs/bug025.go b/test/fixedbugs/bug025.go
index 4d4e954..545b171 100644
--- a/test/fixedbugs/bug025.go
+++ b/test/fixedbugs/bug025.go
@@ -6,7 +6,7 @@
package main
-export foo
+foo
func main() {}
diff --git a/test/fixedbugs/bug026.go b/test/fixedbugs/bug026.go
index d64d062..eacea37 100644
--- a/test/fixedbugs/bug026.go
+++ b/test/fixedbugs/bug026.go
@@ -6,10 +6,10 @@
package main
-export type Element interface {
+type Element interface {
}
-export type Vector struct {
+type Vector struct {
}
func (v *Vector) Insert(i int, e Element) {
diff --git a/test/fixedbugs/bug027.go b/test/fixedbugs/bug027.go
index 9de26af..1630050 100644
--- a/test/fixedbugs/bug027.go
+++ b/test/fixedbugs/bug027.go
@@ -6,15 +6,15 @@
package main
-export type Element interface {
+type Element interface {
}
-export type Vector struct {
+type Vector struct {
nelem int;
elem []Element;
}
-export func New() *Vector {
+func New() *Vector {
v := new(Vector);
v.nelem = 0;
v.elem = make([]Element, 10);
diff --git a/test/fixedbugs/bug028.go b/test/fixedbugs/bug028.go
index 4990ac2..0488ad2 100644
--- a/test/fixedbugs/bug028.go
+++ b/test/fixedbugs/bug028.go
@@ -7,7 +7,7 @@
package main
-export func Alloc(i int) int {
+func Alloc(i int) int {
switch i {
default:
return 5;
diff --git a/test/fixedbugs/bug044.go b/test/fixedbugs/bug044.go
index 52ee033..789237a 100644
--- a/test/fixedbugs/bug044.go
+++ b/test/fixedbugs/bug044.go
@@ -6,7 +6,7 @@
package main
-export type S struct {
+type S struct {
};
func (p *S) M1a() ;
diff --git a/test/fixedbugs/bug045.go b/test/fixedbugs/bug045.go
index b4ae6de..88c005d 100644
--- a/test/fixedbugs/bug045.go
+++ b/test/fixedbugs/bug045.go
@@ -6,7 +6,7 @@
package main
-export type T struct {
+type T struct {
i int
}
diff --git a/test/fixedbugs/bug046.go b/test/fixedbugs/bug046.go
index bd3a1e2..8a9b797 100644
--- a/test/fixedbugs/bug046.go
+++ b/test/fixedbugs/bug046.go
@@ -6,7 +6,7 @@
package main
-export type T *struct {}
+type T *struct {}
func (x T) M () {} // ERROR "pointer|receiver"
diff --git a/test/fixedbugs/bug054.go b/test/fixedbugs/bug054.go
index 35cfc92..0ed5d07 100644
--- a/test/fixedbugs/bug054.go
+++ b/test/fixedbugs/bug054.go
@@ -6,10 +6,10 @@
package main
-export type Element interface {
+type Element interface {
}
-export type Vector struct {
+type Vector struct {
elem []Element;
}
@@ -17,7 +17,7 @@
return v.elem[i];
}
-export type TStruct struct {
+type TStruct struct {
name string;
fields *Vector;
}
diff --git a/test/fixedbugs/bug057.go b/test/fixedbugs/bug057.go
index e0a60dc..1c959b8 100644
--- a/test/fixedbugs/bug057.go
+++ b/test/fixedbugs/bug057.go
@@ -6,7 +6,7 @@
package main
-export type T struct {
+type T struct {
s string;
}
@@ -19,6 +19,6 @@
}
/*
-uetli:/home/gri/go/test/bugs gri$ 6g bug057.go
+uetli:/home/gri/go/test/bugs gri$ 6g bug057.go
bug057.go:14: syntax error
*/
diff --git a/test/fixedbugs/bug058.go b/test/fixedbugs/bug058.go
index 3765dfc..da47ae5 100644
--- a/test/fixedbugs/bug058.go
+++ b/test/fixedbugs/bug058.go
@@ -6,7 +6,7 @@
package main
-export type Box struct {};
+type Box struct {};
var m map[string] *Box;
func main() {
diff --git a/test/fixedbugs/bug059.go b/test/fixedbugs/bug059.go
index d1f3b13..21c0783 100644
--- a/test/fixedbugs/bug059.go
+++ b/test/fixedbugs/bug059.go
@@ -6,7 +6,7 @@
package main
-export func P(a []string) string {
+func P(a []string) string {
s := "{";
for i := 0; i < 2; i++ {
if i > 0 {
diff --git a/test/fixedbugs/bug066.go b/test/fixedbugs/bug066.go
index ce021af..4f64152 100644
--- a/test/fixedbugs/bug066.go
+++ b/test/fixedbugs/bug066.go
@@ -6,26 +6,26 @@
package main
-export type (
+type (
Type struct;
Object struct;
)
-export type Scope struct {
+type Scope struct {
entries map[string] *Object;
}
-export type Type struct {
+type Type struct {
scope *Scope;
}
-export type Object struct {
+type Object struct {
typ *Type;
}
-export func Lookup(scope *Scope) *Object {
+func Lookup(scope *Scope) *Object {
return scope.entries["foo"];
}
diff --git a/test/fixedbugs/bug075.go b/test/fixedbugs/bug075.go
index 76b5189..fceeef8 100644
--- a/test/fixedbugs/bug075.go
+++ b/test/fixedbugs/bug075.go
@@ -6,7 +6,7 @@
package main
-export type T struct { m map[int]int }
+type T struct { m map[int]int }
func main() {
t := new(T);
t.m = make(map[int]int);
diff --git a/test/fixedbugs/bug083.dir/bug0.go b/test/fixedbugs/bug083.dir/bug0.go
index 58c4c49..67ea271 100644
--- a/test/fixedbugs/bug083.dir/bug0.go
+++ b/test/fixedbugs/bug083.dir/bug0.go
@@ -4,7 +4,7 @@
package bug0
-export type T0 struct {
+type T0 struct {
}
-export var V0 T0
+var V0 T0
diff --git a/test/fixedbugs/bug084.go b/test/fixedbugs/bug084.go
index 23e5e00..2897593 100644
--- a/test/fixedbugs/bug084.go
+++ b/test/fixedbugs/bug084.go
@@ -6,7 +6,7 @@
package main
-export type Service struct {
+type Service struct {
rpc [2]int;
}
diff --git a/test/fixedbugs/bug088.dir/bug0.go b/test/fixedbugs/bug088.dir/bug0.go
index 3536e81..082cce8 100644
--- a/test/fixedbugs/bug088.dir/bug0.go
+++ b/test/fixedbugs/bug088.dir/bug0.go
@@ -4,6 +4,6 @@
package bug0
-export var V0 *() int;
-export var V1 *() (a int);
-export var V2 *() (a, b int);
+var V0 *() int;
+var V1 *() (a int);
+var V2 *() (a, b int);
diff --git a/test/fixedbugs/bug089.go b/test/fixedbugs/bug089.go
index 55d4dfb..296e9e6 100644
--- a/test/fixedbugs/bug089.go
+++ b/test/fixedbugs/bug089.go
@@ -6,8 +6,8 @@
package main
-export type I1 interface {}
-export type I2 interface { pr() }
+type I1 interface {}
+type I2 interface { pr() }
func e() I1;
diff --git a/test/fixedbugs/bug093.go b/test/fixedbugs/bug093.go
index 3adbc5a..f80eee0 100644
--- a/test/fixedbugs/bug093.go
+++ b/test/fixedbugs/bug093.go
@@ -6,14 +6,14 @@
package main
-export type S struct {
+type S struct {
}
func (p *S) M() {
print("M\n");
}
-export type I interface {
+type I interface {
M();
}
diff --git a/test/fixedbugs/bug096.go b/test/fixedbugs/bug096.go
index 418f9f2..81d6c4a 100644
--- a/test/fixedbugs/bug096.go
+++ b/test/fixedbugs/bug096.go
@@ -6,7 +6,7 @@
package main
-export type A []int;
+type A []int;
func main() {
a := &A{0};
@@ -16,7 +16,7 @@
/*
uetli:~/Source/go1/test/bugs gri$ 6g bug096.go && 6l bug096.6 && 6.out
Trace/BPT trap
-uetli:~/Source/go1/test/bugs gri$
+uetli:~/Source/go1/test/bugs gri$
*/
/*
diff --git a/test/fixedbugs/bug097.go b/test/fixedbugs/bug097.go
index cd815d7..70bd6e2 100644
--- a/test/fixedbugs/bug097.go
+++ b/test/fixedbugs/bug097.go
@@ -6,7 +6,7 @@
package main
-export type A []int;
+type A []int;
func main() {
var a [3]A;
diff --git a/test/fixedbugs/bug098.go b/test/fixedbugs/bug098.go
index 7c20d92..8e790a7 100644
--- a/test/fixedbugs/bug098.go
+++ b/test/fixedbugs/bug098.go
@@ -6,8 +6,8 @@
package main
-export type A []int;
-export type M map[int] int;
+type A []int;
+type M map[int] int;
func main() {
var a *A = &A{0};
diff --git a/test/fixedbugs/bug099.go b/test/fixedbugs/bug099.go
index 9bf3525..f76f0e8 100644
--- a/test/fixedbugs/bug099.go
+++ b/test/fixedbugs/bug099.go
@@ -7,22 +7,22 @@
package main
// Interface
-export type I interface { F() int }
+type I interface { F() int }
// Implements interface
-export type S struct { }
+type S struct { }
func (s *S) F() int { return 1 }
// Allocates S but returns I
// Arg is unused but important:
// if you take it out (and the 0s below)
// then the bug goes away.
-export func NewI(i int) I {
+func NewI(i int) I {
return new(S)
}
// Uses interface method.
-export func Use(x I) {
+func Use(x I) {
x.F()
}
diff --git a/test/fixedbugs/bug106.dir/bug0.go b/test/fixedbugs/bug106.dir/bug0.go
index 2dfe157..7daf209 100644
--- a/test/fixedbugs/bug106.dir/bug0.go
+++ b/test/fixedbugs/bug106.dir/bug0.go
@@ -3,4 +3,4 @@
// license that can be found in the LICENSE file.
package bug0
-export const A = -1
+const A = -1
diff --git a/test/fixedbugs/bug111.go b/test/fixedbugs/bug111.go
index 39da9b4..e72b343 100644
--- a/test/fixedbugs/bug111.go
+++ b/test/fixedbugs/bug111.go
@@ -8,11 +8,11 @@
var ncall int;
-export type Iffy interface {
+type Iffy interface {
Me() Iffy
}
-export type Stucky struct {
+type Stucky struct {
n int
}
diff --git a/test/fixedbugs/bug112.go b/test/fixedbugs/bug112.go
index b8d3357..3c93284 100644
--- a/test/fixedbugs/bug112.go
+++ b/test/fixedbugs/bug112.go
@@ -6,7 +6,7 @@
package main
-export type T struct { s string }
+type T struct { s string }
var t = T{"hi"}
func main() {}
diff --git a/test/fixedbugs/bug113.go b/test/fixedbugs/bug113.go
index f2f8ee7..ea75260 100644
--- a/test/fixedbugs/bug113.go
+++ b/test/fixedbugs/bug113.go
@@ -5,7 +5,7 @@
// license that can be found in the LICENSE file.
package main
-export type I interface { };
+type I interface { };
func foo1(i int) int { return i }
func foo2(i int32) int32 { return i }
func main() {
diff --git a/test/fixedbugs/bug114.go b/test/fixedbugs/bug114.go
index 431d7bb..33330ff 100644
--- a/test/fixedbugs/bug114.go
+++ b/test/fixedbugs/bug114.go
@@ -6,9 +6,9 @@
package main
-export const B32 = 1<<32 - 1
-export const C32 = (-1) & ((1<<32) - 1)
-export const D32 = ^0
+const B32 = 1<<32 - 1
+const C32 = (-1) & ((1<<32) - 1)
+const D32 = ^0
func main() {
if B32 != 0xFFFFFFFF {
diff --git a/test/fixedbugs/bug118.go b/test/fixedbugs/bug118.go
index d508d83..94f5ffd 100644
--- a/test/fixedbugs/bug118.go
+++ b/test/fixedbugs/bug118.go
@@ -6,7 +6,7 @@
package main
-export func Send(c chan int) int {
+func Send(c chan int) int {
select {
default:
return 1;
diff --git a/test/fixedbugs/bug120.go b/test/fixedbugs/bug120.go
index dae78e9..10e2803 100644
--- a/test/fixedbugs/bug120.go
+++ b/test/fixedbugs/bug120.go
@@ -8,7 +8,7 @@
import "strconv";
-export type Test struct {
+type Test struct {
f float64;
in string;
out string;