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

Subversion Repositories openrisc

[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc3/] [gcc/] [testsuite/] [g++.dg/] [template/] [nontype19.C] - Rev 581

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

// PR c++/42466

template<class IntT, IntT X>
struct A
{
  A();

  template<IntT X2>
  A(const A<IntT, X2>& other);
};

int main(int argc, char** argv)
{
    A<int, 42> a;
    A<int, 100> b = a;

    A<unsigned, 42u> c;
    A<unsigned, 100u> d = c;
}

Go to most recent revision | 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.