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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.c-torture/] [compile/] [pr40432.c] - Blame information for rev 745

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

Line No. Rev Author Line
1 688 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.