Merged trunk at revision 161680 into branch.
[official-gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / 20030807-7.c
blobed6f7c0d5d5d8e688e5de8dbe8dfff6bd20fe6ad
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fdump-tree-vrp1" } */
4 extern void abort (void);
6 union tree_node;
7 typedef union tree_node *tree;
8 struct tree_common
10 int code;
12 struct tree_list
14 tree purpose;
16 union tree_node
18 struct tree_common common;
19 struct tree_list list;
21 void
22 simplify_condition (cond_p)
23 tree *cond_p;
25 tree decl;
26 tree cond = *cond_p;
27 if (cond->common.code != 42)
28 abort ();
29 decl = cond->list.purpose;
30 if (cond->common.code != 42)
31 abort ();
32 c_simplify_stmt (&decl);
35 /* There should be exactly one IF conditional. */
36 /* { dg-final { scan-tree-dump-times "if " 1 "vrp1" { xfail *-*-* } } } */
37 /* { dg-final { cleanup-tree-dump "vrp1" } } */