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/] [g++.dg/] [tree-ssa/] [ptrmemfield.C] - Blame information for rev 414

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

Line No. Rev Author Line
1 301 jeremybenn
/* { dg-do compile } */
2
// { dg-options "-O2 -fdump-tree-optimized" }
3
 
4
 
5
struct f
6
{
7
  char m;
8
  char m1;
9
};
10
 
11
static inline char f:: *g(int a)
12
{
13
  return a?0:&f::m;
14
}
15
 
16
int h(void)
17
{
18
  char f:: *a = g(0);
19
  return a == 0;
20
}
21
 
22
/* We should have no cast to offset_type. */
23
/* { dg-final { scan-tree-dump-times "offset_type" 0 "optimized"} } */
24
// And we should optimized this code to just return 0
25
/* { dg-final { scan-tree-dump-times "return 0" 1 "optimized"} } */
26
/* { dg-final { cleanup-tree-dump "optimized" } } */
27
 

powered by: WebSVN 2.1.0

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