forked from qt-creator/qt-creator
C++11: Fix parsing of trailing-type-specifier.
In particular "auto foo() -> typename Foo<T>::X;" didn't parse. Change-Id: I7665c9b387e222e4107f053a529d502813ebf617 Reviewed-by: Nikolai Kosjar <nikolai.kosjar@digia.com>
This commit is contained in:
5
tests/auto/cplusplus/cxx11/data/trailingtypespec.1.cpp
Normal file
5
tests/auto/cplusplus/cxx11/data/trailingtypespec.1.cpp
Normal file
@@ -0,0 +1,5 @@
|
||||
auto foo()
|
||||
-> const typename XYZ::abc<T>::def;
|
||||
|
||||
auto foo()
|
||||
-> class XYZ::def;
|
||||
@@ -152,6 +152,7 @@ void tst_cxx11::parse_data()
|
||||
QTest::newRow("packExpansion.1") << "packExpansion.1.cpp" << "";
|
||||
QTest::newRow("declType.1") << "declType.1.cpp" << "";
|
||||
QTest::newRow("threadLocal.1") << "threadLocal.1.cpp" << "";
|
||||
QTest::newRow("trailingtypespec.1") << "trailingtypespec.1.cpp" << "";
|
||||
}
|
||||
|
||||
void tst_cxx11::parse()
|
||||
|
||||
Reference in New Issue
Block a user