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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.2.2/] [gcc/] [testsuite/] [g++.old-deja/] [g++.pt/] [explicit31.C] - Diff between revs 149 and 154

Go to most recent revision | Only display areas with differences | Details | Blame | View Log

Rev 149 Rev 154
// { dg-do link  }
// { dg-do link  }
// { dg-options "-ansi -pedantic-errors -w" }
// { dg-options "-ansi -pedantic-errors -w" }
// GROUPS passed templates
// GROUPS passed templates
template 
template 
struct S
struct S
{
{
  template 
  template 
  static double foo(U u) { return (double) u; }
  static double foo(U u) { return (double) u; }
};
};
int main()
int main()
{
{
  double d = S::foo(3.3);
  double d = S::foo(3.3);
  return (d >= 3.1);
  return (d >= 3.1);
}
}
 
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.