URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [template/] [dependent-expr8.C] - Rev 801
Go to most recent revision | Compare with Previous | Blame | View Log
// Origin PR c++/48574
// { dg-options "-std=c++0x" }
// { dg-do compile }
struct A
{
virtual int foo();
};
void baz (int);
template <typename T>
void
bar(T x)
{
A &b = *x;
baz (b.foo ());
}
void
foo()
{
A a;
bar(&a);
}
Go to most recent revision | Compare with Previous | Blame | View Log