URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [c-c++-common/] [uninit-17.c] - Rev 772
Go to most recent revision | Compare with Previous | Blame | View Log
/* { dg-do compile } */ /* { dg-options "-O2 -Wuninitialized -fno-ivopts" } */ inline int foo(int x) { return x; } static void bar(int a, int *ptr) { do { int b; /* { dg-message "declared" } */ if (b < 40) { ptr[0] = b; } b += 1; /* { dg-warning "may be used uninitialized" } */ ptr++; } while (--a != 0); } void foobar(int a, int *ptr) { bar(foo(a), ptr); }
Go to most recent revision | Compare with Previous | Blame | View Log