1 // Copyright 2012 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.
5 // Test cases for sort order of declarations.
12 // V2 should be third.
15 // CBx constants should appear before CAx constants.
17 CB2
= iota // before CB1
22 // VBx variables should appear before VAx variables.
30 // Single const declarations inside ()'s are considered ungrouped
31 // and show up in sorted order.
36 // Single var declarations inside ()'s are considered ungrouped
37 // and show up in sorted order.
41 // T2 should be third.
44 // Grouped types are sorted nevertheless.
46 // TG2 should be third.
49 // TG1 should be second.
52 // TG0 should be first.
56 // F2 should be third.