2 /* { dg-options "-g" } */
4 struct s
{ int a
, b
, c
, d
; };
6 struct s gs1
= { 1, 2, 3, 4 };
7 struct s gs2
= { 5, 6, 7, 8 };
9 struct s
*__attribute__((noipa
)) consume (struct s
*ptr
) { return ptr
; }
15 struct s
*volatile ptr
= consume (&x
);
17 x
= gs2
; /* { dg-final { gdb-test . "ptr->a" "1" } } */
18 return 0; /* { dg-final { gdb-test . "ptr->a" "5" } } */