Fix TestDebugBreak.py failure with gcc, for loop declarations are not allowed by default with gcc

- fix buildbot breakage after r257186
- move declaration outside of for loop

llvm-svn: 257228
This commit is contained in:
Ying Chen 2016-01-08 23:10:56 +00:00
parent f79782fa13
commit d7a2ecb681
1 changed files with 2 additions and 2 deletions

View File

@ -8,8 +8,8 @@
int
bar(int const *foo)
{
int count = 0;
for (int i = 0; i < 10; ++i)
int count = 0, i = 0;
for (; i < 10; ++i)
{
count += 1;
BREAKPOINT_INTRINSIC();