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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.dg/] [Wunused-value-2.c] - Rev 298

Compare with Previous | Blame | View Log

/* Test -Wunused-value.  Bug 30729.  */
/* { dg-do compile } */
/* { dg-options "-Wunused-value" } */
/* Make sure va_arg does not cause a value computed is not used warning
   because it has side effects.   */
#include <stdarg.h>
 
int f(int t, ...)
{
  va_list a;
  va_start (a, t);
  va_arg(a, int);/* { dg-bogus "value computed is not used" } */
  int t1 = va_arg(a, int);
  va_end(a);
  return t1;
}
 
 
 

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.