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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [pr34088.c] - Blame information for rev 689

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 689 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.