OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [g++.old-deja/] [g++.law/] [arm4.C] - Rev 816

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;
}

Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.