URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Go to most recent revision |
Only display areas with differences |
Details |
Blame |
View Log
Rev 154 |
Rev 816 |
// { dg-do assemble }
|
// { dg-do assemble }
|
// GROUPS passed copy-ctors
|
// GROUPS passed copy-ctors
|
// copy file
|
// copy file
|
// From: Vivek Khera
|
// From: Vivek Khera
|
// Date: Mon, 15 Nov 1993 16:02:18 -0500
|
// Date: Mon, 15 Nov 1993 16:02:18 -0500
|
// Subject: g++ 2.5.3 fails to automatically generate default initializer
|
// Subject: g++ 2.5.3 fails to automatically generate default initializer
|
// Message-ID: <9311152102.AA21248@thneed.cs.duke.edu>
|
// Message-ID: <9311152102.AA21248@thneed.cs.duke.edu>
|
|
|
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.