Debian Codegraph @

testsuite/small/typedef-5.c

raw
1 /* { dg-options "-DCE_EXTRACT_FUNCTIONS=f -DCE_NO_EXTERNALIZATION" }*/
2
3 typedef int (*GEN_SESSION_CB)(int *, unsigned char *, unsigned int *);
4
5 struct A {
6 GEN_SESSION_CB a;
7 int y;
8 };
9
10 int f(struct A *a) {
11 return a->y;
12 }
13
14 /* { dg-final { scan-tree-dump "typedef int \(\*GEN_SESSION_CB\)\(int \*, unsigned char \*, unsigned int \*\);" } } */
15 /* { dg-final { scan-tree-dump "struct A {\n *GEN_SESSION_CB a;\n *int y;\n};" } } */
16 /* { dg-final { scan-tree-dump "int f" } } */