gcc/testsuite/g++.old-deja/g++.law/ctors3.C
raw| 1 | // { dg-do assemble } |
| 2 | // GROUPS passed constructors |
| 3 | // ctor file |
| 4 | // Message-Id: <[email protected]> |
| 5 | // From: [email protected] (Gene Hightower) |
| 6 | // Subject: Apparent bug in g++ 2.5.2 |
| 7 | // Date: Wed, 10 Nov 93 18:24 PST |
| 8 | |
| 9 | class One { |
| 10 | public: |
| 11 | One() {} |
| 12 | }; |
| 13 | |
| 14 | template<class T> class Two : public One { |
| 15 | }; |
| 16 | |
| 17 | class Three { |
| 18 | }; |
| 19 | |
| 20 | class Four { |
| 21 | Two<Three> x[1]; |
| 22 | }; |
| 23 | |
| 24 | class Five { |
| 25 | Four y; |
| 26 | |
| 27 | public: |
| 28 | Five() {} |
| 29 | }; |