...
Run Format

Source file test/fixedbugs/bug385_64.go

Documentation: test/fixedbugs

     1  // +build amd64
     2  // errorcheck
     3  
     4  // Copyright 2011 The Go Authors. All rights reserved.
     5  // Use of this source code is governed by a BSD-style
     6  // license that can be found in the LICENSE file.
     7  
     8  // Issue 2444
     9  // Issue 4666: issue with arrays of exactly 4GB.
    10  
    11  package main
    12  
    13  var z [10<<20]byte
    14  
    15  func main() { // GC_ERROR "stack frame too large"
    16  	// seq 1 206 | sed 's/.*/	var x& [10<<20]byte; z = x&/'
    17  	var x1 [10<<20]byte; z = x1
    18  	var x2 [10<<20]byte; z = x2
    19  	var x3 [10<<20]byte; z = x3
    20  	var x4 [10<<20]byte; z = x4
    21  	var x5 [10<<20]byte; z = x5
    22  	var x6 [10<<20]byte; z = x6
    23  	var x7 [10<<20]byte; z = x7
    24  	var x8 [10<<20]byte; z = x8
    25  	var x9 [10<<20]byte; z = x9
    26  	var x10 [10<<20]byte; z = x10
    27  	var x11 [10<<20]byte; z = x11
    28  	var x12 [10<<20]byte; z = x12
    29  	var x13 [10<<20]byte; z = x13
    30  	var x14 [10<<20]byte; z = x14
    31  	var x15 [10<<20]byte; z = x15
    32  	var x16 [10<<20]byte; z = x16
    33  	var x17 [10<<20]byte; z = x17
    34  	var x18 [10<<20]byte; z = x18
    35  	var x19 [10<<20]byte; z = x19
    36  	var x20 [10<<20]byte; z = x20
    37  	var x21 [10<<20]byte; z = x21
    38  	var x22 [10<<20]byte; z = x22
    39  	var x23 [10<<20]byte; z = x23
    40  	var x24 [10<<20]byte; z = x24
    41  	var x25 [10<<20]byte; z = x25
    42  	var x26 [10<<20]byte; z = x26
    43  	var x27 [10<<20]byte; z = x27
    44  	var x28 [10<<20]byte; z = x28
    45  	var x29 [10<<20]byte; z = x29
    46  	var x30 [10<<20]byte; z = x30
    47  	var x31 [10<<20]byte; z = x31
    48  	var x32 [10<<20]byte; z = x32
    49  	var x33 [10<<20]byte; z = x33
    50  	var x34 [10<<20]byte; z = x34
    51  	var x35 [10<<20]byte; z = x35
    52  	var x36 [10<<20]byte; z = x36
    53  	var x37 [10<<20]byte; z = x37
    54  	var x38 [10<<20]byte; z = x38
    55  	var x39 [10<<20]byte; z = x39
    56  	var x40 [10<<20]byte; z = x40
    57  	var x41 [10<<20]byte; z = x41
    58  	var x42 [10<<20]byte; z = x42
    59  	var x43 [10<<20]byte; z = x43
    60  	var x44 [10<<20]byte; z = x44
    61  	var x45 [10<<20]byte; z = x45
    62  	var x46 [10<<20]byte; z = x46
    63  	var x47 [10<<20]byte; z = x47
    64  	var x48 [10<<20]byte; z = x48
    65  	var x49 [10<<20]byte; z = x49
    66  	var x50 [10<<20]byte; z = x50
    67  	var x51 [10<<20]byte; z = x51
    68  	var x52 [10<<20]byte; z = x52
    69  	var x53 [10<<20]byte; z = x53
    70  	var x54 [10<<20]byte; z = x54
    71  	var x55 [10<<20]byte; z = x55
    72  	var x56 [10<<20]byte; z = x56
    73  	var x57 [10<<20]byte; z = x57
    74  	var x58 [10<<20]byte; z = x58
    75  	var x59 [10<<20]byte; z = x59
    76  	var x60 [10<<20]byte; z = x60
    77  	var x61 [10<<20]byte; z = x61
    78  	var x62 [10<<20]byte; z = x62
    79  	var x63 [10<<20]byte; z = x63
    80  	var x64 [10<<20]byte; z = x64
    81  	var x65 [10<<20]byte; z = x65
    82  	var x66 [10<<20]byte; z = x66
    83  	var x67 [10<<20]byte; z = x67
    84  	var x68 [10<<20]byte; z = x68
    85  	var x69 [10<<20]byte; z = x69
    86  	var x70 [10<<20]byte; z = x70
    87  	var x71 [10<<20]byte; z = x71
    88  	var x72 [10<<20]byte; z = x72
    89  	var x73 [10<<20]byte; z = x73
    90  	var x74 [10<<20]byte; z = x74
    91  	var x75 [10<<20]byte; z = x75
    92  	var x76 [10<<20]byte; z = x76
    93  	var x77 [10<<20]byte; z = x77
    94  	var x78 [10<<20]byte; z = x78
    95  	var x79 [10<<20]byte; z = x79
    96  	var x80 [10<<20]byte; z = x80
    97  	var x81 [10<<20]byte; z = x81
    98  	var x82 [10<<20]byte; z = x82
    99  	var x83 [10<<20]byte; z = x83
   100  	var x84 [10<<20]byte; z = x84
   101  	var x85 [10<<20]byte; z = x85
   102  	var x86 [10<<20]byte; z = x86
   103  	var x87 [10<<20]byte; z = x87
   104  	var x88 [10<<20]byte; z = x88
   105  	var x89 [10<<20]byte; z = x89
   106  	var x90 [10<<20]byte; z = x90
   107  	var x91 [10<<20]byte; z = x91
   108  	var x92 [10<<20]byte; z = x92
   109  	var x93 [10<<20]byte; z = x93
   110  	var x94 [10<<20]byte; z = x94
   111  	var x95 [10<<20]byte; z = x95
   112  	var x96 [10<<20]byte; z = x96
   113  	var x97 [10<<20]byte; z = x97
   114  	var x98 [10<<20]byte; z = x98
   115  	var x99 [10<<20]byte; z = x99
   116  	var x100 [10<<20]byte; z = x100
   117  	var x101 [10<<20]byte; z = x101
   118  	var x102 [10<<20]byte; z = x102
   119  	var x103 [10<<20]byte; z = x103
   120  	var x104 [10<<20]byte; z = x104
   121  	var x105 [10<<20]byte; z = x105
   122  	var x106 [10<<20]byte; z = x106
   123  	var x107 [10<<20]byte; z = x107
   124  	var x108 [10<<20]byte; z = x108
   125  	var x109 [10<<20]byte; z = x109
   126  	var x110 [10<<20]byte; z = x110
   127  	var x111 [10<<20]byte; z = x111
   128  	var x112 [10<<20]byte; z = x112
   129  	var x113 [10<<20]byte; z = x113
   130  	var x114 [10<<20]byte; z = x114
   131  	var x115 [10<<20]byte; z = x115
   132  	var x116 [10<<20]byte; z = x116
   133  	var x117 [10<<20]byte; z = x117
   134  	var x118 [10<<20]byte; z = x118
   135  	var x119 [10<<20]byte; z = x119
   136  	var x120 [10<<20]byte; z = x120
   137  	var x121 [10<<20]byte; z = x121
   138  	var x122 [10<<20]byte; z = x122
   139  	var x123 [10<<20]byte; z = x123
   140  	var x124 [10<<20]byte; z = x124
   141  	var x125 [10<<20]byte; z = x125
   142  	var x126 [10<<20]byte; z = x126
   143  	var x127 [10<<20]byte; z = x127
   144  	var x128 [10<<20]byte; z = x128
   145  	var x129 [10<<20]byte; z = x129
   146  	var x130 [10<<20]byte; z = x130
   147  	var x131 [10<<20]byte; z = x131
   148  	var x132 [10<<20]byte; z = x132
   149  	var x133 [10<<20]byte; z = x133
   150  	var x134 [10<<20]byte; z = x134
   151  	var x135 [10<<20]byte; z = x135
   152  	var x136 [10<<20]byte; z = x136
   153  	var x137 [10<<20]byte; z = x137
   154  	var x138 [10<<20]byte; z = x138
   155  	var x139 [10<<20]byte; z = x139
   156  	var x140 [10<<20]byte; z = x140
   157  	var x141 [10<<20]byte; z = x141
   158  	var x142 [10<<20]byte; z = x142
   159  	var x143 [10<<20]byte; z = x143
   160  	var x144 [10<<20]byte; z = x144
   161  	var x145 [10<<20]byte; z = x145
   162  	var x146 [10<<20]byte; z = x146
   163  	var x147 [10<<20]byte; z = x147
   164  	var x148 [10<<20]byte; z = x148
   165  	var x149 [10<<20]byte; z = x149
   166  	var x150 [10<<20]byte; z = x150
   167  	var x151 [10<<20]byte; z = x151
   168  	var x152 [10<<20]byte; z = x152
   169  	var x153 [10<<20]byte; z = x153
   170  	var x154 [10<<20]byte; z = x154
   171  	var x155 [10<<20]byte; z = x155
   172  	var x156 [10<<20]byte; z = x156
   173  	var x157 [10<<20]byte; z = x157
   174  	var x158 [10<<20]byte; z = x158
   175  	var x159 [10<<20]byte; z = x159
   176  	var x160 [10<<20]byte; z = x160
   177  	var x161 [10<<20]byte; z = x161
   178  	var x162 [10<<20]byte; z = x162
   179  	var x163 [10<<20]byte; z = x163
   180  	var x164 [10<<20]byte; z = x164
   181  	var x165 [10<<20]byte; z = x165
   182  	var x166 [10<<20]byte; z = x166
   183  	var x167 [10<<20]byte; z = x167
   184  	var x168 [10<<20]byte; z = x168
   185  	var x169 [10<<20]byte; z = x169
   186  	var x170 [10<<20]byte; z = x170
   187  	var x171 [10<<20]byte; z = x171
   188  	var x172 [10<<20]byte; z = x172
   189  	var x173 [10<<20]byte; z = x173
   190  	var x174 [10<<20]byte; z = x174
   191  	var x175 [10<<20]byte; z = x175
   192  	var x176 [10<<20]byte; z = x176
   193  	var x177 [10<<20]byte; z = x177
   194  	var x178 [10<<20]byte; z = x178
   195  	var x179 [10<<20]byte; z = x179
   196  	var x180 [10<<20]byte; z = x180
   197  	var x181 [10<<20]byte; z = x181
   198  	var x182 [10<<20]byte; z = x182
   199  	var x183 [10<<20]byte; z = x183
   200  	var x184 [10<<20]byte; z = x184
   201  	var x185 [10<<20]byte; z = x185
   202  	var x186 [10<<20]byte; z = x186
   203  	var x187 [10<<20]byte; z = x187
   204  	var x188 [10<<20]byte; z = x188
   205  	var x189 [10<<20]byte; z = x189
   206  	var x190 [10<<20]byte; z = x190
   207  	var x191 [10<<20]byte; z = x191
   208  	var x192 [10<<20]byte; z = x192
   209  	var x193 [10<<20]byte; z = x193
   210  	var x194 [10<<20]byte; z = x194
   211  	var x195 [10<<20]byte; z = x195
   212  	var x196 [10<<20]byte; z = x196
   213  	var x197 [10<<20]byte; z = x197
   214  	var x198 [10<<20]byte; z = x198
   215  	var x199 [10<<20]byte; z = x199
   216  	var x200 [10<<20]byte; z = x200
   217  	var x201 [10<<20]byte; z = x201
   218  	var x202 [10<<20]byte; z = x202
   219  	var x203 [10<<20]byte; z = x203
   220  	var x204 [10<<20]byte; z = x204
   221  	var x205 [10<<20]byte; z = x205
   222  	var x206 [10<<20]byte; z = x206
   223  }
   224  

View as plain text