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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [gcc.dg/] [pr18501.c] - Blame information for rev 816

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 149 jeremybenn
/* Expected uninitialized variable warning.  */
2
 
3
/* { dg-do compile } */
4
/* { dg-options "-O -Wuninitialized" } */
5
 
6
unsigned bmp_iter_set ();
7
int something (void);
8
 
9
void
10
bitmap_print_value_set (void)
11
{
12
  unsigned first;       /* { dg-warning "may be used" "conditional in loop" { xfail *-*-* } } */
13
 
14
  for (; bmp_iter_set (); )
15
    {
16
      if (!first)
17
        something ();
18
      first = 0;
19
    }
20
}

powered by: WebSVN 2.1.0

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