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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.old-deja/] [g++.pt/] [memclass2.C] - Rev 699

Compare with Previous | Blame | View Log

// { dg-do run  }
template <class T> struct A {
  template <class U> struct B {
    template <class V> void f (V) { }
    void g () { }
  };
  template <class W> struct B<W*> {
    void h () { }
  };
};

int main ()
{
  A<int>::B<char> b;
  b.f (42);
  b.g ();
  A<double>::B<void*> b2;
  b2.h ();
}

Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

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