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/] [spec33.C] - Rev 149

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

// { dg-do link  }
// Origin: James McKelvey <mckelvey@fafnir.com>

class A
{
  public:
  template <class T> A(T x, bool y = false);
};

template <class T> A::A(T, bool)
{
}

template <> A::A(char, bool)
{
}

int main()
{
  int  b;
  char c;

  A x(b);
  A y(c);
  A z(c, false);
}

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.