| 1 |
/* { dg-do compile } */ |
| 2 |
/* { dg-options "-Og -Wuninitialized -ftree-bit-ccp -fno-thread-jumps -fdump-tree-uninit2" } */ |
| 3 |
|
| 4 |
void exit(int __status) __attribute__ ((__noreturn__)); |
| 5 |
int posix_memalign(void **__memptr, __SIZE_TYPE__ __alignment, |
| 6 |
__SIZE_TYPE__ __size); |
| 7 |
|
| 8 |
void *f(void) |
| 9 |
{ |
| 10 |
void *ptr; |
| 11 |
|
| 12 |
if (posix_memalign(&ptr, 16, 256) != 0) |
| 13 |
exit(1); |
| 14 |
|
| 15 |
return ptr; /* { dg-bogus "uninitialized" } */ |
| 16 |
} |
| 17 |
|
| 18 |
/* Make sure the uninit pass has something to do, add to the set of |
| 19 |
disabled optimizations if not. */ |
| 20 |
/* { dg-final { scan-tree-dump "# ptr_. = PHI" "uninit2" } } */ |