blob: a859e32521a2d184a83b4ebf9250b7dee31e2986 [file] [log] [blame]
/* { dg-do run } */
/* { dg-options "-g" } */
int *__attribute__((noipa)) consume (int *ptr) { return ptr; }
int
main (void)
{
int x;
int *volatile ptr = consume (&x);
x = 0;
x = 1; /* { dg-final { gdb-test . "*ptr" "0" } } */
return 0; /* { dg-final { gdb-test . "*ptr" "1" } } */
}