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.0rc2/] [gcc/] [testsuite/] [g++.dg/] [init/] [cleanup2.C] - Blame information for rev 301

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

Line No. Rev Author Line
1 301 jeremybenn
// PR c++/12526
2
 
3
// We decided that the call to strcmp has no side-effects because strcmp is
4
// pure, even though the first argument has side-effects.  As a result, we
5
// stripped the CLEANUP_POINT_EXPR.  Hilarity ensued.
6
 
7
extern "C" int strcmp (const char *, const char *);
8
 
9
struct A {
10
  A(int);
11
  const char *str();
12
  ~A();
13
};
14
 
15
void printQueryI()
16
{
17
  if(!strcmp(A(1).str(), "foo"))
18
    { }
19
}

powered by: WebSVN 2.1.0

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