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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.old-deja/] [g++.law/] [cvt4.C] - Rev 699

Compare with Previous | Blame | View Log

// { dg-do run  }
// GROUPS passed conversions
// cvt file
// Message-Id: <9308091213.AA11572@emmy.Mathematik.Uni-Dortmund.DE>
// From: Michael Strauch <strauch@emmy.mathematik.uni-dortmund.de>
// Subject: Bug in GCC 2.4.5
// Date: Mon, 9 Aug 93 14:13:50 MESZ

extern "C" int printf (const char *, ...);

int destruct = 2;

  class Test{
  protected:
     long x;
  public:
     Test(){;}
     Test(long l) {x=l;}
     ~Test() {if (--destruct == 0) printf ("PASS\n");}
  };

int main()
  {
     long i=1;
     Test t;

     t=(Test)i;
  }

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.