2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.brendan / synth1.C
blobeed7f9ffb006037d94d030d0b44da73ea69a1633
1 // { dg-do assemble { xfail sparc64-*-elf } }
2 // { dg-options "-pedantic-errors -g -Wall" }
3 // GROUPS passed synthetics
4 // Check to make sure that g++ doesn't get freaked out about the use
5 // of generated methods that it supposedly "can't see".
7 class Char {
8 public:
9     Char();
10     Char(char v);
11     
12     // synthetic copy-constructor and operator=
13 private:
14     char value;
17 class XChar: public Char {
18 public:
19     XChar();
20     XChar(char v, int serial);
21     
22     void operator=(const XChar& other);
23 private:
24     int serial;
27 void
28 XChar::operator=(const XChar& other)
30     Char::operator=(other);
31     // serial stays the same