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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [overload/] [ambig2.C] - Blame information for rev 701

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

Line No. Rev Author Line
1 693 jeremybenn
// Bug: g++ thought that the QChar overload was a viable but ambiguous
2
// candidate.  It isn't viable, because there's no conversion from const
3
// char * to QChar.
4
 
5
class QChar {
6
public:
7
    QChar( char c );
8
    QChar( unsigned char c );
9
};
10
 
11
class QString
12
{
13
public:
14
    QString( const char *str );                 // deep copy
15
 
16
    QString    &insert( unsigned int index, const QString & );
17
    QString    &insert( unsigned int index, QChar );
18
    QString    &prepend( const char* );
19
};
20
 
21
inline QString &QString::prepend( const char* s )
22
{ return insert(0,s); }

powered by: WebSVN 2.1.0

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