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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [g++.dg/] [template/] [nontype15.C] - Rev 853

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

struct foo {
    typedef int (*fun)(int);

  static int f(int);    // overload between static & non-static
  int f();

  static int g(int);    // non-overloaded static
};

template<foo::fun>
struct f_obj {
  // something ..
};

int foo::f() {
  f_obj<f> f1;
  f_obj<g> f2;

  return 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.