testsuite/small/typedef-2.c
raw| 1 | /* { dg-options "-DCE_EXTRACT_FUNCTIONS=Get_X -DCE_NO_EXTERNALIZATION" }*/ |
| 2 | |
| 3 | typedef struct { |
| 4 | int x; |
| 5 | int y; |
| 6 | } Point; |
| 7 | |
| 8 | int Get_X(Point *p) { |
| 9 | return p->x; |
| 10 | } |
| 11 | |
| 12 | /* { dg-final { scan-tree-dump "typedef struct {\n *int x;\n *int y;\n} Point;" } } */ |
| 13 | /* { dg-final { scan-tree-dump "int Get_X" } } */ |