URL
https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk
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;
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.