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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.dg/] [torture/] [pr42898-2.c] - Blame information for rev 298

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 298 jeremybenn
/* { dg-do compile } */
2
/* { dg-options "-fdump-tree-optimized" } */
3
 
4
struct hardware {
5
  int parm1:8;
6
  int :4;
7
  int parm2:4;
8
  int parm3:15;
9
  int parm4:1;
10
};
11
 
12
const struct hardware h = {
13
  .parm1=42,
14
  .parm2=13,
15
  .parm3=11850,
16
  .parm4=1,
17
};
18
 
19
void f1(volatile struct hardware *ptr)
20
{
21
  *ptr = h;
22
}
23
 
24
/* { dg-final { scan-tree-dump-times "\\*ptr" 1 "optimized" } } */
25
/* { dg-final { cleanup-tree-dump "optimized" } } */

powered by: WebSVN 2.1.0

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