Missing return section: add test for auto functions

This commit is contained in:
Sebastian Wilzbach 2017-02-20 05:43:58 +01:00
parent 3103f58242
commit 4b0f61bb98
1 changed files with 9 additions and 0 deletions

View File

@ -370,6 +370,15 @@ unittest
}c.format(
ProperlyDocumentedPublicFunctions.MISSING_RETURNS_MESSAGE,
), sac);
assertAnalyzerWarnings(q{
/**
Some text
*/
auto foo(){} // [warn]: %s
}c.format(
ProperlyDocumentedPublicFunctions.MISSING_RETURNS_MESSAGE,
), sac);
}
// ignore private