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/] [tree-ssa/] [pr44258.c] - Blame information for rev 399

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 298 jeremybenn
/* { dg-do compile } */
2
/* { dg-options "-O2 -fdump-tree-esra-details" } */
3
 
4
struct blah
5
{
6
  char a[4];
7
};
8
 
9
struct str
10
{
11
  struct blah b1;
12
  char x;
13
};
14
 
15
struct val
16
{
17
  char y;
18 399 jeremybenn
  struct blah b2 __attribute__((packed)); /* { dg-warning "attribute ignored" "" { target { ! or32-*-* } } } */
19 298 jeremybenn
};
20
 
21
union U
22
{
23
  struct str str;
24
  struct val val;
25
};
26
 
27
 
28
extern struct blah e_b1, e_b2;
29
extern union U *e_u;
30
 
31
int foo (int b)
32
{
33
  union U u;
34
 
35
  u.str.b1 = e_b1;
36
  u.val.b2 = e_b2;
37
  u.str.b1.a[3] = 0;
38
 
39
  *e_u = u;
40
}
41
 
42
/* { dg-final { scan-tree-dump-times "Created a replacement" 0 "esra"} } */
43
/* { dg-final { cleanup-tree-dump "esra" } } */

powered by: WebSVN 2.1.0

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