]> Cypherpunks.ru repositories - gostls13.git/blob - test/rename.go
defining package block names must override
[gostls13.git] / test / rename.go
1 // $G $D/$F.go && $L $F.$A && ./$A.out
2
3 // Copyright 2009 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 package main
8
9 import "fmt"
10
11 func main() {
12         n :=
13                 bool +
14                 byte +
15                 float +
16                 float32 +
17                 float64 + 
18                 int +
19                 int8 +
20                 int16 +
21                 int32 +
22                 int64 +
23                 uint +
24                 uint8 +
25                 uint16 +
26                 uint32 +
27                 uint64 +
28                 uintptr +
29                 true +
30                 false +
31                 iota +
32                 nil + 
33                 cap +
34                 len +
35                 make +
36                 new +
37                 panic +
38                 panicln +
39                 print +
40                 println;
41         if n != 28*29/2 {
42                 fmt.Println("BUG: wrong n", n, 28*29/2)
43         }
44 }
45
46 const (
47         bool = 1;
48         byte = 2;
49         float = 3;
50         float32 = 4;
51         float64 = 5;
52         int = 6;
53         int8 = 7;
54         int16 = 8;
55         int32 = 9;
56         int64 = 10;
57         uint = 11;
58         uint8 = 12;
59         uint16 = 13;
60         uint32 = 14;
61         uint64 = 15;
62         uintptr = 16;
63         true = 17;
64         false = 18;
65         iota = 19;
66         nil = 20;
67         cap = 21;
68         len = 22;
69         make = 23;
70         new = 24;
71         panic = 25;
72         panicln = 26;
73         print = 27;
74         println = 28;
75 )