summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/expr/cond7.C
blob: 05e8eab4418b676df168a605a2fab80f1544316a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// PR c++/19148

struct QChar {
  QChar (char c);
  QChar (const QChar &);
  unsigned short ucs;
};

void f(QChar *uc, unsigned short ch, QChar replacement)
{
  *uc++ = ((ch) ? QChar((1)) : replacement);
}