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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [g++.dg/] [vect/] [pr22543.cc] - Rev 831

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

/* { dg-do compile } */
 
struct A
{
  int i, j;
 
  A() : i(), j() {}
  ~A() {}
 
  operator int() { return 0; }
};
 
struct B
{
  A foo() const { return A(); }
};
 
struct X { ~X(); };
 
struct C
{
  C();
 
  int z[4];
};
 
C::C()
{
  for (int i=0; i<4; ++i)
    z[i]=0;
 
  X x;
 
  for (int i=0; i<4; ++i)
    int j = B().foo();
}
 
/* { dg-final { cleanup-tree-dump "vect" } } */
 

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

powered by: WebSVN 2.1.0

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