| 1 |
/* PR sanitizer/117209 */ |
| 2 |
/* { dg-do compile } */ |
| 3 |
/* { dg-options "-fsanitize=address" } */ |
| 4 |
|
| 5 |
struct A { char a; }; |
| 6 |
void foo (void); |
| 7 |
__attribute__((returns_twice, const)) int bar (struct A); |
| 8 |
|
| 9 |
void |
| 10 |
baz (struct A *x, int *y, int z) |
| 11 |
{ |
| 12 |
if (z) |
| 13 |
foo (); |
| 14 |
*y = bar (*x); |
| 15 |
} |