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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [torture/] [pr42110.C] - Blame information for rev 774

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 693 jeremybenn
/* { dg-do compile } */
2
bool foo();
3
 
4
struct A
5
{
6
  A* fooA() { if (foo()) foo(); return this; }
7
 
8
  virtual void barA(char);
9
};
10
 
11
template struct B
12
{
13
  A *p, *q;
14
 
15
  void fooB(char c) { p->fooA()->barA(c); }
16
};
17
 
18
template inline void bar(B b) { b.fooB(0); }
19
 
20
extern template void bar(B<0>);
21
 
22
void (*f)(B<0>) = bar;
23
 
24
void baz()
25
{
26
  B<0>().fooB(0);
27
}

powered by: WebSVN 2.1.0

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