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

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.2.2/] [gcc/] [testsuite/] [gcc.dg/] [funcdef-attr-1.c] - Blame information for rev 154

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 149 jeremybenn
/* The declarator in a function definition should be able to take the
2
   form of an attributed function declarator, not just a plain
3
   function declarator.  This was formerly allowed by some of the code
4
   but then the wrong constraint checks were made because other code
5
   didn't recognise the declarator as being that of the function
6
   definition.  */
7
/* Origin: Joseph Myers <jsm@polyomino.org.uk>.  */
8
 
9
int (__attribute__((const)) x) (a, b)
10
     int a;
11
     int b;
12
{
13
  return a + b;
14
}

powered by: WebSVN 2.1.0

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