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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.old-deja/] [g++.brendan/] [def-fns1.C] - Rev 749

Go to most recent revision | Compare with Previous | Blame | View Log

// { dg-do assemble  }
// GROUPS passed default-functions
class dictionary {
public:
  dictionary (int);
};

class symbol {
public:
  symbol ();
};

// a default ctor should not be generated for hyphenation_language,
// 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,
// since dictionary only defines a ctor taking an int (it ALSO should
// not get a default ctor)
struct hyphenation_language {
  symbol name;
  dictionary exceptions;
  hyphenation_language(symbol nm) : name(nm), exceptions(501) {}
};

Go to most recent revision | 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.