2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.robertl / eb125.C
blob915fbe6794b27276f20dbed3a814c3cb7c59c53e
1 // { dg-do assemble }
3 struct test_box
4     {
5      void print(void);
6     };
8 void test<class BOX> (test_box *);   // { dg-error "" } illegal code
10 class test_square
11     {
12       friend void test<class BOX> (test_box *); // { dg-error "" } does not match
13     }
17 template <class BOX> void test(BOX *the_box)  // { dg-error "" } semicolon missing
18     {x
19     the_box->print();
20     }; // { dg-error "" }
22 template void test<> (test_box *); // { dg-error "" }