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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [template/] [cond4.C] - Blame information for rev 693

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 693 jeremybenn
// PR c++/14369
2
 
3
struct A { };
4
 
5
template
6
struct X : A {
7
   const A* bar() const
8
   { return this; }
9
 
10
   const A& foo() const;
11
};
12
 
13
template
14
const A& X::foo() const
15
{
16
   const A* t = bar();
17
   return *(t ? t : throw 0);
18
}
19
 
20
 

powered by: WebSVN 2.1.0

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