URL
https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 298 |
Rev 384 |
/* { dg-do compile } */
|
/* { dg-do compile } */
|
|
|
#include <stdarg.h>
|
#include <stdarg.h>
|
|
|
va_list v;
|
va_list v;
|
volatile int i;
|
volatile int i;
|
|
|
void foo()
|
void foo()
|
{
|
{
|
i = va_arg(v, char); /* { dg-warning "is promoted to|so you should|abort" "char" } */
|
i = va_arg(v, char); /* { dg-warning "is promoted to|so you should|abort" "char" } */
|
i = va_arg(v, short); /* { dg-warning "is promoted to|abort" "short" } */
|
i = va_arg(v, short); /* { dg-warning "is promoted to|abort" "short" } */
|
i = va_arg(v, float); /* { dg-warning "is promoted to|abort" "float" } */
|
i = va_arg(v, float); /* { dg-warning "is promoted to|abort" "float" } */
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.