re PR tree-optimization/33291 (a+=2; a+=2 not simplified to a+=4; with -O3 ...
[gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / 20030922-1.c
1 /* { dg-do compile } */
2 /* { dg-options "-O1 -fdump-tree-dom3" } */
3
4 extern void abort (void);
5
6 union tree_node;
7 typedef union tree_node *tree;
8 enum tree_code
9 {
10 BIND_EXPR,
11 };
12 struct tree_common
13 {
14 enum tree_code code:8;
15 };
16 union tree_node
17 {
18 struct tree_common common;
19 };
20 tree
21 voidify_wrapper_expr (tree wrapper)
22 {
23 switch (wrapper->common.code)
24 {
25 case BIND_EXPR:
26 if (wrapper->common.code != BIND_EXPR)
27 abort ();
28 }
29 }
30
31
32 /* There should be no IF conditionals. */
33 /* { dg-final { scan-tree-dump-times "if " 0 "dom3"} } */
34 /* { dg-final { cleanup-tree-dump "dom3" } } */