gcc/testsuite/g++.old-deja/g++.pt/spec37.C
raw| 1 | // { dg-do assemble } |
| 2 | // |
| 3 | // Copyright (C) 2000 Free Software Foundation, Inc. |
| 4 | // Contributed by Nathan Sidwell 21 Jan 2001 <[email protected]> |
| 5 | |
| 6 | // Bug 1728. We started sorting things when there were 7 fields. Our |
| 7 | // template_count algorithm was rather fragile ... |
| 8 | |
| 9 | template <int dim> struct X |
| 10 | { |
| 11 | struct Y |
| 12 | { |
| 13 | int x1; |
| 14 | int x2; |
| 15 | int x3; |
| 16 | int x4; |
| 17 | int x5; |
| 18 | int x6; |
| 19 | int x7; |
| 20 | |
| 21 | void Foo (); |
| 22 | }; |
| 23 | }; |
| 24 | |
| 25 | template <> void X<1>::Y::Foo () {} |