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++.dg/] [template/] [call1.C] - Diff between revs 149 and 154

Only display areas with differences | Details | Blame | View Log

Rev 149 Rev 154
//Origin: harinath@cs.umn.edu
//Origin: harinath@cs.umn.edu
//PR c++/10804
//PR c++/10804
// G++ was not emiting the function foo.
// G++ was not emiting the function foo.
// { dg-do run }
// { dg-do run }
template
template
struct A
struct A
{
{
  A() { const void (*a)() = foo; }
  A() { const void (*a)() = foo; }
  static const void foo() {}
  static const void foo() {}
};
};
int main(int argc, char *argv[])
int main(int argc, char *argv[])
{
{
  A a;
  A a;
}
}
 
 

powered by: WebSVN 2.1.0

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