PR middle-end/77357 - strlen of constant strings not folded
[official-gcc.git] / gcc / testsuite / gcc.c-torture / compile / pr25514.c
blob0bf5aa9077dc0f9b8f909f43f217b009e860de36
1 struct node {
2 struct node *next;
3 int value;
4 };
6 struct node *current_node, global_list;
8 void
9 bar (void)
11 struct node *node, *next;
13 node = current_node;
14 next = node->next;
15 if (node != &global_list)
16 current_node = next;
17 else
19 node = global_list.next;
20 global_list.value = node->value;
21 global_list.next = node->next;
23 foo (node);