URL
https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk
Subversion Repositories openrisc_2011-10-31
[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.2.2/] [gcc/] [testsuite/] [g++.old-deja/] [g++.law/] [arm4.C] - Rev 154
Compare with Previous | Blame | View Log
// { dg-do run }
// GROUPS passed ARM-compliance
// arm file
// Message-Id: <199301272139.AA25489@world.std.com>
// From: kol@world.std.com (Nikolay Yatsenko)
// Subject: g++ bug
// Date: Wed, 27 Jan 1993 16:39:10 -0500
extern "C" int printf(const char*,...);
int count = 0;
struct S {
int i;
S(int b) {
i = b;
count++; }
};
int main(void)
{
double a = 2.0;
S x(int (a));
if (count > 0)
{ printf ("FAIL\n"); return 1; }
else
printf ("PASS\n");
return 0;
}