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/] [pr34088.c] - Rev 298

Compare with Previous | Blame | View Log

/* PR middle-end/34088 */
/* { dg-do compile } */
/* { dg-options "-O -Wall -Werror" } */
 
int F0 (int);
int F1 (int t) { return F0(t); }
int F2 (int t) { return F0(t); }
 
extern int X[];
static inline int foo(int i)
{
  return X[i];
}
 
int bar(int* p)
{
  int i;
 
  while ( ({ if (foo(*p) && foo(*p)); p; }) );
 
  return i;	/* { dg-error "is used uninitialized" } */
}
 
/* { dg-message "warnings being treated as errors" "" {target "*-*-*"} 0 } */
 

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.