URL
https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk
Subversion Repositories openrisc_me
[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [g++.old-deja/] [g++.law/] [ctors20.C] - Rev 305
Compare with Previous | Blame | View Log
// { dg-do assemble }
// GROUPS passed constructors
// ctor file
// Message-Id: <9311011758.AA25157@thneed.cs.duke.edu>
// From: Vivek Khera <khera@cs.duke.edu>
// Subject: g++ 2.5.0 fails to automatically generate default initializer
// Date: Mon, 01 Nov 1993 12:58:34 -0500
class String
{
private:
char a[100];
int len;
public:
String();
};
String::String()
{
len = 0;
}
struct List
{
String item[100];
int num_items;
// List(); // uncomment this line to let compile work
};
int
main(int argc, char **argv)
{
List a;
}