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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [g++.old-deja/] [g++.pt/] [union1.C] - Rev 816

Compare with Previous | Blame | View Log

// { dg-do assemble  }

union Un {int i;};

template<class T1, class T2> struct St1 {};
template<class T> struct St1<Un,T> {};

template<class T> struct St2 {};
template<> struct St2<Un> {};

template<class T1, class T2> struct St3 {};
template<> struct St3<Un,int> {};

void f() {
  St1<int,int> s1;
  St2<int>     s2;
  St3<int,int> s3;
}

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.