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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [pr45461.c] - Rev 750

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

/* PR middle-end/45461 */
/* { dg-do compile } */
 
#include <stdarg.h>
 
int
foo (int i, ...)
{
  short e;
  va_list ap;
  va_start (ap, i);
  e = va_arg (ap, short);	/* { dg-warning "is promoted" } */
  va_end (ap);
  return e;
}
 
/* { dg-message "note: \\(so you should pass" "" {target *-*-* } 12 } */
/* { dg-message "note: if this code" "" {target *-*-* } 12 } */
 

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

powered by: WebSVN 2.1.0

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