aboutsummaryrefslogtreecommitdiffstats
path: root/src/tools/cplusplus-ast2png/tests/templ01.cpp
blob: 4d99fd526062f22e5cf104c2449f5ce6ac2d42ff (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+ OR GPL-3.0 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'); 
}