summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/overload/arg5.C
blob: 63c66d4a099883886878dd25d5407bb37a33619f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
// PR c++/34111

class QChar
{
};
struct QString
{
  QString(QChar);
};
struct QPainter
{
  void drawText (int x, int y, const QString &);
};

  class KHEChar:public QChar
  {
  public:KHEChar (QChar C);
  };

void
drawByte (QPainter * P, char, KHEChar B)
{
  P->drawText (0, 0, B);
}