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

Subversion Repositories openrisc

[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc1/] [gcc/] [testsuite/] [g++.old-deja/] [g++.brendan/] [def-fns1.C] - Diff between revs 305 and 338

Go to most recent revision | Only display areas with differences | Details | Blame | View Log

Rev 305 Rev 338
// { dg-do assemble  }
// { dg-do assemble  }
// GROUPS passed default-functions
// GROUPS passed default-functions
class dictionary {
class dictionary {
public:
public:
  dictionary (int);
  dictionary (int);
};
};
class symbol {
class symbol {
public:
public:
  symbol ();
  symbol ();
};
};
// a default ctor should not be generated for hyphenation_language,
// a default ctor should not be generated for hyphenation_language,
// since a ctor has already been declared; if one is generated, there
// since a ctor has already been declared; if one is generated, there
// will be an error about not enough args to the ctor for dictionary,
// will be an error about not enough args to the ctor for dictionary,
// since dictionary only defines a ctor taking an int (it ALSO should
// since dictionary only defines a ctor taking an int (it ALSO should
// not get a default ctor)
// not get a default ctor)
struct hyphenation_language {
struct hyphenation_language {
  symbol name;
  symbol name;
  dictionary exceptions;
  dictionary exceptions;
  hyphenation_language(symbol nm) : name(nm), exceptions(501) {}
  hyphenation_language(symbol nm) : name(nm), exceptions(501) {}
};
};
 
 

powered by: WebSVN 2.1.0

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