testsuite/small/record-8.c
raw| 1 | /* { dg-options "-DCE_EXTRACT_FUNCTIONS=f -DCE_NO_EXTERNALIZATION" }*/ |
| 2 | |
| 3 | static struct block { |
| 4 | unsigned int secnr; |
| 5 | } *blockhead; |
| 6 | |
| 7 | void f() { |
| 8 | unsigned int a = blockhead->secnr; |
| 9 | } |
| 10 | |
| 11 | /* { dg-final { scan-tree-dump "static struct block {\n *unsigned int secnr;\n} *\*blockhead;" } } */ |
| 12 | /* { dg-final { scan-tree-dump-not "^struct block {" } } */ |