OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.c-torture/] [compile/] [pr40432.c] - Blame information for rev 323

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

Line No. Rev Author Line
1 297 jeremybenn
/* Test that SRA produces valid gimple when handling both type punning by means
2
   of VCE and creating an access to a union.  */
3
 
4
union U {
5
  struct something *sth;
6
  void *nothing;
7
};
8
 
9
void
10
foo (union U *target, void *p)
11
{
12
  union U u;
13
 
14
  u.nothing = p;
15
  *target = u;
16
  return;
17
}

powered by: WebSVN 2.1.0

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