OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [g++.dg/] [template/] [non-dependent1.C] - Blame information for rev 816

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 149 jeremybenn
//PR c++/8222
2
// Origin: giovannibajo@libero.it and setzersn@gmx.de
3
 
4
// { dg-do run }
5
 
6
struct Foo
7
{
8
    template 
9
    void func() {}
10
};
11
template 
12
void Bar(Foo* p)
13
{
14
    p->func();
15
}
16
 
17
int main()
18
{
19
    Foo c;
20
    Bar(&c);
21
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.