URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 305 |
Rev 338 |
// { dg-do run }
|
// { dg-do run }
|
// GROUPS passed initialization
|
// GROUPS passed initialization
|
// init file
|
// init file
|
// From: hansen@srd.ull.rdc.toshiba.co.jp
|
// From: hansen@srd.ull.rdc.toshiba.co.jp
|
// Date: Mon, 13 Dec 93 18:27:51 +0900
|
// Date: Mon, 13 Dec 93 18:27:51 +0900
|
// Subject: g++ Bug
|
// Subject: g++ Bug
|
// Message-ID: <9312130927.AA08192@VLCS151.noname>
|
// Message-ID: <9312130927.AA08192@VLCS151.noname>
|
|
|
#include
|
#include
|
|
|
int X = 7;
|
int X = 7;
|
|
|
struct foo {
|
struct foo {
|
int a,b,c;
|
int a,b,c;
|
};
|
};
|
|
|
struct foo Ack = {5, X, 3};
|
struct foo Ack = {5, X, 3};
|
|
|
int main()
|
int main()
|
{
|
{
|
if (Ack.a == 5 && Ack.b == 7 && Ack.c == 3)
|
if (Ack.a == 5 && Ack.b == 7 && Ack.c == 3)
|
printf ("PASS\n");
|
printf ("PASS\n");
|
else
|
else
|
{ printf ("FAIL\n"); return 1; }
|
{ printf ("FAIL\n"); return 1; }
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.