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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.2.2/] [gcc/] [testsuite/] [g++.old-deja/] [g++.brendan/] [synth1.C] - Blame information for rev 154

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 149 jeremybenn
// { 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".
6
 
7
class Char {
8
public:
9
    Char();
10
    Char(char v);
11
 
12
    // synthetic copy-constructor and operator=
13
private:
14
    char value;
15
};
16
 
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;
25
};
26
 
27
void
28
XChar::operator=(const XChar& other)
29
{
30
    Char::operator=(other);
31
    // serial stays the same
32
}

powered by: WebSVN 2.1.0

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