forked from qt-creator/qt-creator
C++: Fix "duplicate data type in declaration" for lambdas
The "_type" wasn't reset. Task-number: QTCREATORBUG-12521 Change-Id: I0d38cb38e270260065313d1235d42f2689385850 Reviewed-by: Erik Verbruggen <erik.verbruggen@digia.com>
This commit is contained in:
6
tests/auto/cplusplus/cxx11/data/lambda.2.cpp
Normal file
6
tests/auto/cplusplus/cxx11/data/lambda.2.cpp
Normal file
@@ -0,0 +1,6 @@
|
||||
void f()
|
||||
{
|
||||
func([]() -> int { return 42; });
|
||||
func([]() -> int { return 42; });
|
||||
}
|
||||
|
||||
@@ -157,6 +157,7 @@ void tst_cxx11::parse_data()
|
||||
QTest::newRow("declType.1") << "declType.1.cpp" << "";
|
||||
QTest::newRow("threadLocal.1") << "threadLocal.1.cpp" << "";
|
||||
QTest::newRow("trailingtypespec.1") << "trailingtypespec.1.cpp" << "";
|
||||
QTest::newRow("lambda.2") << "lambda.2.cpp" << "";
|
||||
}
|
||||
|
||||
void tst_cxx11::parse()
|
||||
|
||||
Reference in New Issue
Block a user