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/] [link1.C] - Rev 853

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

// { dg-do link  }
// Origin: Mark Mitchell <mark@codesourcery.com>

template <class T>
int f(T);

template <class T>
struct S {
  template <class U>
  friend int f(U) { return 0; }
};

int k = f(2);

template <class T>
int g(T);

int h = g(7);

template <class T>
int g(T) {
  S<T> si;
  return 0;
}

int main()
{
}

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.