testsuite/small/typeof-2.c
raw| 1 | /* { dg-options "-DCE_EXTRACT_FUNCTIONS=f -DCE_NO_EXTERNALIZATION" }*/ |
| 2 | |
| 3 | struct pcpu_hot |
| 4 | { |
| 5 | int current_task; |
| 6 | }; |
| 7 | |
| 8 | extern __typeof(struct pcpu_hot) pcpu_hot; |
| 9 | |
| 10 | int f(void) |
| 11 | { |
| 12 | return pcpu_hot.current_task; |
| 13 | } |
| 14 | |
| 15 | /* { dg-final { scan-tree-dump "struct pcpu_hot\n\{" } } */ |
| 16 | /* { dg-final { scan-tree-dump "extern __typeof\(struct pcpu_hot\) pcpu_hot;" } } */ |