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] - Blame information for rev 749

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

Line No. Rev Author Line
1 699 jeremybenn
// { dg-do assemble  }
2
// GROUPS passed default-functions
3
class dictionary {
4
public:
5
  dictionary (int);
6
};
7
 
8
class symbol {
9
public:
10
  symbol ();
11
};
12
 
13
// a default ctor should not be generated for hyphenation_language,
14
// since a ctor has already been declared; if one is generated, there
15
// will be an error about not enough args to the ctor for dictionary,
16
// since dictionary only defines a ctor taking an int (it ALSO should
17
// not get a default ctor)
18
struct hyphenation_language {
19
  symbol name;
20
  dictionary exceptions;
21
  hyphenation_language(symbol nm) : name(nm), exceptions(501) {}
22
};

powered by: WebSVN 2.1.0

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