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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [pr45461.c] - Blame information for rev 754

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

Line No. Rev Author Line
1 689 jeremybenn
/* PR middle-end/45461 */
2
/* { dg-do compile } */
3
 
4
#include <stdarg.h>
5
 
6
int
7
foo (int i, ...)
8
{
9
  short e;
10
  va_list ap;
11
  va_start (ap, i);
12
  e = va_arg (ap, short);       /* { dg-warning "is promoted" } */
13
  va_end (ap);
14
  return e;
15
}
16
 
17
/* { dg-message "note: \\(so you should pass" "" {target *-*-* } 12 } */
18
/* { dg-message "note: if this code" "" {target *-*-* } 12 } */

powered by: WebSVN 2.1.0

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