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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [parse/] [lookup5.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
 
3
struct A {};
4
 
5
template  struct B
6
{
7
  T a, b;
8
  B() {}
9
  B(T x, T y) : a(x), b(y) {}
10
  template  operator B () const
11
  { return B((U)(this->a), (U)(this->b)); }
12
};
13
 
14
template  struct C : public B
15
{
16
  T *c;
17
  inline T & operator *() { return *c; }
18
};
19
 
20
template  struct D : virtual public C { };
21
 
22
void
23
foo (D x)
24
{
25
  *x;
26
}

powered by: WebSVN 2.1.0

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