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/] [gcc.dg/] [old-style-prom-2.c] - Blame information for rev 237

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

Line No. Rev Author Line
1 149 jeremybenn
/* Test for prototype followed by old-style definition, as in
2
   dremf-type-compat-2.c but with a non-built-in function.  */
3
/* { dg-do compile } */
4
/* { dg-options "-pedantic" } */
5
 
6
float f (float, float); /* { dg-warning "warning: prototype declaration" } */
7
 
8
float
9
f (x, y)
10
     float x;
11
     float y;
12
{ /* { dg-warning "warning: promoted argument '.' doesn't match prototype" } */
13
  return x + y;
14
}

powered by: WebSVN 2.1.0

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