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

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc1/] [gcc/] [testsuite/] [gcc.c-torture/] [compile/] [20011217-1.c] - Blame information for rev 338

Details | Compare with Previous | View Log

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