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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [torture/] [pr41183.C] - Rev 774

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

// PR c++/41183
// { dg-do compile }

void foo (const char *);

template <int *>
struct A
{
  template <typename T> A (const int &, T);
  int i;
};

template <int *X>
template <typename T>
A<X>::A (const int &j, T) : i(j)
{
  foo (0);
  foo (0);
  foo (__PRETTY_FUNCTION__);
}

int N;

struct B
{
  B ();
  A<&N> a;
};

B::B() : a(N, 0) {}

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.