blob: 5faa28087c8469049bc3f30574166d83ee086fd2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
struct test_box
{
void print(void);
};
void test<class BOX> (test_box *); // ERROR - illegal code
class test_square
{
friend void test<class BOX> (test_box *); // ERROR - does not match
}
template <class BOX> void test(BOX *the_box) // ERROR - semicolon missing
{
the_box->print();
};
template void test<> (test_box *); // gets bogus error - test is declared XFAIL *-*-*
|