forked from qt-creator/qt-creator
Move ast dump tools from tests/manual to tests/tools.
Reviewed-by: Friedemann Kleint
This commit is contained in:
17
tests/tools/cplusplus-dump/tests/templ01.cpp
Normal file
17
tests/tools/cplusplus-dump/tests/templ01.cpp
Normal file
@@ -0,0 +1,17 @@
|
||||
|
||||
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');
|
||||
}
|
||||
Reference in New Issue
Block a user