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