OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc2/] [gcc/] [testsuite/] [g++.old-deja/] [g++.law/] [parsing9.C] - Diff between revs 305 and 384

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

Rev 305 Rev 384
// { dg-do assemble  }
// { dg-do assemble  }
// GROUPS passed parsing
// GROUPS passed parsing
// From: Jason Merrill 
// From: Jason Merrill 
// Date:     Fri, 13 Aug 93 12:49:11 PDT
// Date:     Fri, 13 Aug 93 12:49:11 PDT
// Subject:  2.4.5 won't compile array of pointers to functions returning T
// Subject:  2.4.5 won't compile array of pointers to functions returning T
// Message-ID: <9308131949.AA26348@cygnus.com>
// Message-ID: <9308131949.AA26348@cygnus.com>
// From: "Robert M. Keller" 
// From: "Robert M. Keller" 
// Subject: g++ bug
// Subject: g++ bug
// Date: Fri, 13 Aug 93 10:09:27 PDT
// Date: Fri, 13 Aug 93 10:09:27 PDT
/* Testing declaration of "array of pointers to functions returning T" */
/* Testing declaration of "array of pointers to functions returning T" */
typedef int T;
typedef int T;
T foo()
T foo()
{ return 10; }
{ return 10; }
T bar()
T bar()
{ return 20; }
{ return 20; }
T baz()
T baz()
{ return 30; }
{ return 30; }
int main()
int main()
{
{
T (*apfrt[10])();
T (*apfrt[10])();
apfrt[0] = foo;
apfrt[0] = foo;
apfrt[1] = bar;
apfrt[1] = bar;
apfrt[2] = baz;
apfrt[2] = baz;
}
}
 
 

powered by: WebSVN 2.1.0

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