Debian Codegraph @

gcc/testsuite/g++.old-deja/g++.brendan/def-fns1.C

raw
1 // { 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 };