summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/expr/cond4.C
blob: fff5c8b185dc7e66f4ec512c1e2e067e6e7747f6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// PR c++/13971

struct QChar {
    static const QChar null;
};
struct QCharRef {
    operator QChar() const;
};
struct QString {
    QCharRef operator[](int i);
};

QChar fillParagraph(QString s, int psi) {
    return psi ? QChar::null : s[psi];
}