[compiler-rt] Fix reporting unrecognized flags in unit tests.
Previously, the warning messages might be issued within a wrong test case. Differential Revision: https://reviews.llvm.org/D57318 llvm-svn: 352447
This commit is contained in:
parent
87cc05055a
commit
0f13000958
|
@ -33,6 +33,9 @@ static void TestFlag(T start_value, const char *env, T final_value) {
|
|||
parser.ParseString(env);
|
||||
|
||||
EXPECT_EQ(final_value, flag);
|
||||
|
||||
// Reporting unrecognized flags is needed to reset them.
|
||||
ReportUnrecognizedFlags();
|
||||
}
|
||||
|
||||
template <>
|
||||
|
|
Loading…
Reference in New Issue