Fix warning with -Wsign-compare -Wsystem-headers
[official-gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / 20030708-1.c
blob8b7ab985bd33a1b1fb77dff2637134d1fefc0798
1 /* { dg-do compile } */
2 /* { dg-options "-O1 -fdump-tree-dom2" } */
3 extern void abort (void);
4 struct rtx_def;
5 typedef struct rtx_def *rtx;
6 enum rtx_code
8 CALL_INSN,
9 EXPR_LIST,
10 NOTE,
11 LAST = 256
14 struct rtx_def
17 enum rtx_code code:16;
20 extern void blah (rtx *);
22 int
23 nonlocal_mentioned_p (x)
24 rtx x;
26 if (x->code == CALL_INSN)
28 rtx const _rtx = ((x));
29 if (_rtx->code != CALL_INSN
30 && _rtx->code != NOTE
31 && _rtx->code != EXPR_LIST)
32 abort ();
35 blah (&x);
38 /* There should be no casts to a short unsigned int since the entire
39 set of conditionals should optimize away. */
40 /* { dg-final { scan-tree-dump-times "\\(short unsigned int\\)" 0 "dom2"} } */
42 /* There should be no IF conditionals. */
43 /* { dg-final { scan-tree-dump-times "if " 0 "dom2"} } */