PR tree-optimization/81303
[official-gcc.git] / gcc / testsuite / gcc.dg / pr18241-3.c
blob869b1e914122361537dec55f855acf40f7fd474f
1 /* { dg-do run } */
2 /* { dg-options "-O1" } */
4 void abort (void);
6 void radix_tree_tag_clear (int *node)
8 int *path[2], **pathp = path, height;
9 volatile int *addr;
11 height = 1;
12 pathp[0] = node;
14 while (height > 0) {
15 pathp[1] = pathp[0];
16 pathp++;
17 height--;
20 addr = pathp[0];
21 *addr = 1;
24 int main ()
26 int n;
27 radix_tree_tag_clear (&n);
28 if (n != 1)
29 abort ();
30 return 0;