20030808-1.c: Force enum size.
[official-gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / 20030708-1.c
blob65c8026a341fe2a44b78b8ad6045193bf2fec7fb
1 /* { dg-do compile } */
2 /* { dg-options "-O1 -fdump-tree-dom3" } */
3 struct rtx_def;
4 typedef struct rtx_def *rtx;
5 enum rtx_code
7 CALL_INSN,
8 EXPR_LIST,
9 NOTE,
10 LAST = 256
13 struct rtx_def
16 enum rtx_code code:16;
19 static int
20 nonlocal_mentioned_p (x)
21 rtx x;
23 if (x->code == CALL_INSN)
25 rtx const _rtx = ((x));
26 if (_rtx->code != CALL_INSN
27 && _rtx->code != NOTE
28 && _rtx->code != EXPR_LIST)
29 abort ();
32 blah (&x);
35 /* There should be no casts to a short unsigned int since the entire
36 set of conditionals should optimize away. */
37 /* { dg-final { scan-tree-dump-times "\\(short unsigned int\\)" 0 "dom3"} } */
39 /* There should be no IF conditionals. */
40 /* { dg-final { scan-tree-dump-times "if " 0 "dom3"} } */