[clang] [clang-repl] Always clean up scope and context for TopLevelStmtDecl (PR #150215)
Vassil Vassilev via cfe-commits
cfe-commits at lists.llvm.org
Wed Jul 23 06:19:56 PDT 2025
================
@@ -18,4 +18,12 @@ extern "C" int printf(const char *, ...);
int i = 42;
auto r1 = printf("i = %d\n", i);
// CHECK: i = 42
+
+1aap = 42; // expected-error {{invalid digit 'a' in decimal constant}}
+1aap = 42; i = 5;
+// expected-error {{intended to fail the -verify test but not hit an assertion}}
----------------
vgvassilev wrote:
Probably this one too.
https://github.com/llvm/llvm-project/pull/150215
More information about the cfe-commits
mailing list