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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.c-torture/] [compile/] [20011217-1.c] - Blame information for rev 688

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 688 jeremybenn
/* Test that the initializer of a compound literal is properly walked
2
   when tree inlining.  */
3
/* Origin: PR c/5105 from <aj@suse.de>.  */
4
 
5
typedef struct { long p; } pt;
6
 
7
inline pt f (pt _p)
8
{
9
  long p = _p.p;
10
 
11
  return (pt) { (p) };
12
}
13
 
14
static int mmap_mem (void)
15
{
16
  pt p;
17
  p = f (p);
18
 
19
  return 0;
20
}

powered by: WebSVN 2.1.0

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