summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.brendan/def-fns1.C
blob: 8730536d016d42cb28f898c7f7e87d401f1c6f4e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// { 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) {}
};