OpenCores
URL https://opencores.org/ocsvn/scarts/scarts/trunk

Subversion Repositories scarts

[/] [scarts/] [trunk/] [toolchain/] [scarts-gcc/] [gcc-4.1.1/] [gcc/] [testsuite/] [gcc.dg/] [tree-ssa/] [20030922-1.c] - Blame information for rev 12

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 12 jlechner
/* { dg-do compile } */
2
/* { dg-options "-O1 -fdump-tree-dom3" } */
3
 
4
extern void abort (void);
5
 
6
union tree_node;
7
typedef union tree_node *tree;
8
enum tree_code
9
{
10
  BIND_EXPR,
11
};
12
struct tree_common
13
{
14
  enum tree_code code:8;
15
};
16
union tree_node
17
{
18
  struct tree_common common;
19
};
20
tree
21
voidify_wrapper_expr (tree wrapper)
22
{
23
  switch (wrapper->common.code)
24
    {
25
    case BIND_EXPR:
26
      if (wrapper->common.code != BIND_EXPR)
27
        abort ();
28
    }
29
}
30
 
31
 
32
/* There should be no IF conditionals.  */
33
/* { dg-final { scan-tree-dump-times "if " 0 "dom3"} } */
34
/* { dg-final { cleanup-tree-dump "dom3" } } */

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.