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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [gcc.c-torture/] [compile/] [20020109-2.c] - Rev 154

Go to most recent revision | Compare with Previous | Blame | View Log

typedef union
{
  unsigned char member3;
  signed short member4;
  unsigned int member5;
}
UNI02;
 
struct srt_dat_t
{
  UNI02 un2;
  unsigned long member1;
  signed short member2;
};
 
struct srt_dat_t exsrt1;
void
extern_test (struct srt_dat_t arg1)
{
  arg1.un2.member3++;
  arg1.member1++;
  arg1.member2++;
}
 
int
main (void)
{
  extern_test (exsrt1);
  return (0);
}
 

Go to most recent revision | 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.