summaryrefslogtreecommitdiff
path: root/src/tools/cplusplus-ast2png/tests/templ01.cpp
blob: 9741b0a162b6b82a05fca08da83bdfb759da612f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// Copyright (C) 2016 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0

struct QString
{
    void append(char ch);
};

template <typename _Tp> struct QList {
    const _Tp &at(int index);
};

struct QStringList: public QList<QString> {};

int main()
{
    QStringList l;
    l.at(0).append('a'); 
}