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

Subversion Repositories openrisc

[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc1/] [gcc/] [testsuite/] [g++.old-deja/] [g++.law/] [ctors20.C] - Diff between revs 305 and 338

Only display areas with differences | Details | Blame | View Log

Rev 305 Rev 338
// { dg-do assemble  }
// { dg-do assemble  }
// GROUPS passed constructors
// GROUPS passed constructors
// ctor file
// ctor file
// Message-Id: <9311011758.AA25157@thneed.cs.duke.edu>
// Message-Id: <9311011758.AA25157@thneed.cs.duke.edu>
// From: Vivek Khera 
// From: Vivek Khera 
// Subject: g++ 2.5.0 fails to automatically generate default initializer
// Subject: g++ 2.5.0 fails to automatically generate default initializer
// Date: Mon, 01 Nov 1993 12:58:34 -0500
// Date: Mon, 01 Nov 1993 12:58:34 -0500
class String
class String
{
{
  private:
  private:
    char a[100];
    char a[100];
    int len;
    int len;
  public:
  public:
    String();
    String();
};
};
String::String()
String::String()
{
{
    len = 0;
    len = 0;
}
}
struct List
struct List
{
{
    String item[100];
    String item[100];
    int num_items;
    int num_items;
//    List();                   // uncomment this line to let compile work
//    List();                   // uncomment this line to let compile work
};
};
int
int
main(int argc, char **argv)
main(int argc, char **argv)
{
{
    List a;
    List a;
}
}
 
 

powered by: WebSVN 2.1.0

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