]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/testsuite/gcc.dg/tree-ssa/20030708-1.c
Merge tree-ssa-20020619-branch into mainline.
[thirdparty/gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / 20030708-1.c
CommitLineData
6de9cd9a
DN
1/* { dg-do compile } */
2/* { dg-options "-O1 -fdump-tree-dom3" } */
3struct rtx_def;
4typedef struct rtx_def *rtx;
5enum rtx_code
6{
7 CALL_INSN,
8 EXPR_LIST,
9 NOTE
10};
11
12struct rtx_def
13{
14
15 enum rtx_code code:16;
16};
17
18static int
19nonlocal_mentioned_p (x)
20 rtx x;
21{
22 if (x->code == CALL_INSN)
23 {
24 rtx const _rtx = ((x));
25 if (_rtx->code != CALL_INSN
26 && _rtx->code != NOTE
27 && _rtx->code != EXPR_LIST)
28 abort ();
29 }
30
31 blah (&x);
32}
33
34/* There should be no casts to a short unsigned int since the entire
35 set of conditionals should optimize away. */
36/* { dg-final { scan-tree-dump-times "\\(short unsigned int\\)" 0 "dom3"} } */
37
38/* There should be no IF conditionals. */
39/* { dg-final { scan-tree-dump-times "if " 0 "dom3"} } */
40
41