v.g.vassilev marked an inline comment as done.
v.g.vassilev added inline comments.
================
Comment at: clang/test/Interpreter/execute-stmts.cpp:34
+
+for (; i > 4; --i) printf("i = %d\n", i);
+// CHECK-NEXT: i = 5
----------------
UnionType wrote:
> It seems that top-level statements wrapped in braces cannot be handled, maybe
> I made a mistake.
> ```
> for (; i > 4; --i) { printf("i = %d\n", i); }
>
> { i++; }
> ```
Ah, you are right. I have a fix for this case here:
https://reviews.llvm.org/D139798
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D127284/new/
https://reviews.llvm.org/D127284
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits