gcc/testsuite/gcc.c-torture/compile/20030530-1.c
raw| 1 | union tree_node; |
| 2 | typedef union tree_node *tree; |
| 3 | struct tree_common |
| 4 | { |
| 5 | tree type; |
| 6 | unsigned lang_flag_0 : 1; |
| 7 | }; |
| 8 | union tree_node |
| 9 | { |
| 10 | struct tree_common common; |
| 11 | }; |
| 12 | void bar (tree); |
| 13 | static void |
| 14 | java_check_regular_methods (tree class_decl) |
| 15 | { |
| 16 | int saw_constructor = class_decl->common.type->common.lang_flag_0; |
| 17 | tree class = class_decl->common.type; |
| 18 | for (;;) |
| 19 | { |
| 20 | if (class) |
| 21 | if (class_decl->common.type) |
| 22 | bar (class); |
| 23 | } |
| 24 | } |