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/] [nested1.C] - Rev 699

Compare with Previous | Blame | View Log

// { dg-do assemble  }

template <class T1,class T2>
struct X
{
  T1 a;

  struct Y
  {
    T2 x;
    Y (T2 _x) { x=_x; }
  };

};

template <class T1>
struct X<T1,int>
{
  T1 a;

  struct Y
  {
    int x;
    Y (int _x) { x=_x; }
  };

};

template <>
struct X<int,int>
{
  int a;

  struct Y
  {
    int x;
    Y (int _x) { x=_x; }
  };

};

void f ()
{
  X<char,char> t1;
  X<char,int> t2; 
  X<int,int> t3;  
}

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.