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

Subversion Repositories openrisc

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

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 689 jeremybenn
/* { dg-do compile } */
2
/* { dg-options "-Wuninitialized" } */
3
 
4
/* XFAIL for now, the uninitialized pass runs before inlining only at -O0.  */
5
 
6
inline int __attribute__((always_inline))
7
foo (int i)
8
{
9
    if (i) return 1; /* { dg-warning "is used uninitialized" {} { xfail *-*-* } } */
10
    return 0;
11
}
12
 
13
void baz();
14
 
15
void bar()
16
{
17
    int j;           /* { dg-message "was declared here" {} { xfail *-*-* } } */
18
    for (; foo(j); ++j)
19
        baz();
20
}

powered by: WebSVN 2.1.0

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