Debian Codegraph @

gcc/testsuite/gcc.dg/torture/pr112487.c

raw
1 /* { dg-do compile } */
2 /* { dg-additional-options "-w -std=gnu89" } */
3
4 struct A { char i; };
5 struct B {
6 struct C *p;
7 struct A *q;
8 };
9 struct C { struct B a[1]; };
10 struct T { struct U *ptr; };
11
12 volatile struct T v;
13 void f1(volatile struct T v) { f2(v); }
14 void f2(volatile struct T *const v) { }
15 void bar() {
16 struct U *ptr;
17 f1(v);
18 }