1/* { dg-do compile } */
2/* { dg-options "-O1 -fdump-tree-dom2" } */
3
4extern void abort (void);
5struct rtx_def;
6typedef struct rtx_def *rtx;
7struct rtx_def
8{
9  int code;
10};
11foo (reg)
12     rtx reg;
13{
14  reg->code = 42;
15  if (reg->code != 42)
16    abort ();
17}
18
19/* There should be no IF conditionals.  */
20/* { dg-final { scan-tree-dump-times "if " 0 "dom2"} } */
21/* { dg-final { cleanup-tree-dump "dom2" } } */
22