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