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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [va-arg-1.c] - Blame information for rev 708

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

Line No. Rev Author Line
1 689 jeremybenn
/* { dg-do compile } */
2
 
3
#include <stdarg.h>
4
 
5
va_list v;
6
volatile int i;
7
 
8
void foo()
9
{
10
  i = va_arg(v, char); /* { dg-warning "is promoted to|so you should|abort" "char" } */
11
  i = va_arg(v, short); /* { dg-warning "is promoted to|abort" "short" } */
12
  i = va_arg(v, float); /* { dg-warning "is promoted to|abort" "float" } */
13
}

powered by: WebSVN 2.1.0

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