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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [g++.old-deja/] [g++.other/] [cleanup1.C] - Blame information for rev 844

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

Line No. Rev Author Line
1 149 jeremybenn
// { dg-do run  }
2
// Bug: fold is too eager about pushing down CLEANUP_POINT_EXPR.
3
 
4
int d;
5
 
6
struct A {
7
  A() { }
8
  ~A() { d = 1; }
9
};
10
 
11
int f (const A& a)
12
{
13
  return 1;
14
}
15
 
16
int main ()
17
{
18
  if (f (A()) && d == 0)
19
    return 0;
20
  return 1;
21
}

powered by: WebSVN 2.1.0

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