Debian Codegraph @

testsuite/small/pointer-3.c

raw
1 /* { dg-options "-DCE_EXTRACT_FUNCTIONS=f -DCE_NO_EXTERNALIZATION" }*/
2 // We don't need the full definition of X, yet it is bringing it to us.
3 /* { dg-xfail } */
4
5 typedef struct {
6 int x;
7 } X;
8
9 typedef struct {
10 X *x;
11 int y;
12 } Y;
13
14 int f(Y *y)
15 {
16 return y->y;
17 }
18
19 /* { dg-final { scan-tree-dump "typedef struct {\n *X \*x;\n *int y;\n} Y;" } } */
20 /* { dg-final { scan-tree-dump-not "typedef struct {\n *int x;\n} X;" } } */
21 /* { dg-final { scan-tree-dump "return y->y;" } } */