зеркало из https://github.com/microsoft/clang-1.git
Added test case for the dead stores checker that was originally an FP reported in PR 2763.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@55801 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Родитель
e933450535
Коммит
b497ebdce3
|
@ -99,3 +99,12 @@ int f13(void)
|
|||
return (a + b + c);
|
||||
}
|
||||
|
||||
// Filed with PR 2763.
|
||||
int f41(int count) {
|
||||
int index, nextLineIndex;
|
||||
for (index = 0; index < count; index = nextLineIndex+1) {
|
||||
nextLineIndex = index+1; // no-warning
|
||||
continue;
|
||||
}
|
||||
return index;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче