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] - Blame information for rev 298

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 298 jeremybenn
/* PR middle-end/34088 */
2
/* { dg-do compile } */
3
/* { dg-options "-O -Wall -Werror" } */
4
 
5
int F0 (int);
6
int F1 (int t) { return F0(t); }
7
int F2 (int t) { return F0(t); }
8
 
9
extern int X[];
10
static inline int foo(int i)
11
{
12
  return X[i];
13
}
14
 
15
int bar(int* p)
16
{
17
  int i;
18
 
19
  while ( ({ if (foo(*p) && foo(*p)); p; }) );
20
 
21
  return i;     /* { dg-error "is used uninitialized" } */
22
}
23
 
24
/* { dg-message "warnings being treated as errors" "" {target "*-*-*"} 0 } */

powered by: WebSVN 2.1.0

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