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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [pr50763-2.c] - Rev 689

Compare with Previous | Blame | View Log

/* { dg-do compile } */
/* { dg-options "-O2" } */
 
typedef union tree_node *tree;
 
struct tree_base
{
  int code;
};
 
struct tree_typed
{
  struct tree_base base;
  tree type;
};
 
struct tree_common
{
  struct tree_typed typed;
};
 
struct tree_type_common
{
  tree main_variant;
};
 
union tree_node
{
  struct tree_base base;
  struct tree_typed typed;
  struct tree_type_common type_common;
};
 
int std_canonical_va_list_type (tree type)
{
  if (type->base.code)
    type = type->typed.type;
  else
    if (type->typed.type->base.code)
      type = type->typed.type;
 
  if (type->type_common.main_variant)
    return 1;
 
  return 0;
}
 

Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

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