[clang] [clang-repl] Re-enable Interpreter tests under ASan (PR #230880)
via cfe-commits
cfe-commits at lists.llvm.org
Sat Oct 10 19:38:11 PDT 2026
llvmorg-github-actions[bot] wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-clang
Author: Vitaly Buka (vitalybuka)
<details>
<summary>Changes</summary>
Re-enable the `clang-repl` tests that were previously marked
`UNSUPPORTED: asan` due to `Delta32` relocation overflows (#<!-- -->102858,
#<!-- -->135401, #<!-- -->150242).
Assisted-by: Gemini
---
Full diff: https://github.com/llvm/llvm-project/pull/230880.diff
5 Files Affected:
- (modified) clang/test/Interpreter/const.cpp (-3)
- (modified) clang/test/Interpreter/global-dtor.cpp (-3)
- (modified) clang/test/Interpreter/inline-virtual.cpp (-3)
- (modified) clang/test/Interpreter/pretty-print.cpp (-2)
- (modified) clang/test/Interpreter/value-print-temporaries.cpp (-3)
``````````diff
diff --git a/clang/test/Interpreter/const.cpp b/clang/test/Interpreter/const.cpp
index cadd446b7504f..04e0b751429de 100644
--- a/clang/test/Interpreter/const.cpp
+++ b/clang/test/Interpreter/const.cpp
@@ -1,9 +1,6 @@
// see https://github.com/llvm/llvm-project/issues/68092
// XFAIL: host={{.*}}-windows-msvc
-// The test is flaky with asan https://github.com/llvm/llvm-project/issues/102858.
-// UNSUPPORTED: asan
-
// RUN: cat %s | clang-repl | FileCheck %s
// RUN: cat %s | clang-repl -Xcc -O2 | FileCheck %s
diff --git a/clang/test/Interpreter/global-dtor.cpp b/clang/test/Interpreter/global-dtor.cpp
index cd148de672ef1..9cb454b06c171 100644
--- a/clang/test/Interpreter/global-dtor.cpp
+++ b/clang/test/Interpreter/global-dtor.cpp
@@ -4,9 +4,6 @@
//
// RUN: cat %s | clang-repl | FileCheck %s
-// The test is flaky with ASan: https://github.com/llvm/llvm-project/issues/102858
-// UNSUPPORTED: asan
-
extern "C" int printf(const char *, ...);
struct D { float f = 1.0; D *m = nullptr; D(){} ~D() { printf("D[f=%f, m=0x%llx]\n", f, reinterpret_cast<unsigned long long>(m)); }} d;
diff --git a/clang/test/Interpreter/inline-virtual.cpp b/clang/test/Interpreter/inline-virtual.cpp
index 3790c110af09d..a2aa202d15ba1 100644
--- a/clang/test/Interpreter/inline-virtual.cpp
+++ b/clang/test/Interpreter/inline-virtual.cpp
@@ -1,8 +1,5 @@
// REQUIRES: host-supports-jit
//
-// This test is flaky with ASan: https://github.com/llvm/llvm-project/issues/135401
-// UNSUPPORTED: asan
-//
// We disable RTTI to avoid problems on Windows for non-RTTI builds of LLVM
// where the JIT cannot find ??_7type_info@@6B at .
// RUN: cat %s | clang-repl -Xcc -fno-rtti -Xcc -fno-sized-deallocation \
diff --git a/clang/test/Interpreter/pretty-print.cpp b/clang/test/Interpreter/pretty-print.cpp
index 777d809873203..be882ac85cc7e 100644
--- a/clang/test/Interpreter/pretty-print.cpp
+++ b/clang/test/Interpreter/pretty-print.cpp
@@ -1,7 +1,5 @@
// RUN: clang-repl "int i = 10;" 'extern "C" int printf(const char*,...);' \
// RUN: 'auto r1 = printf("i = %d\n", i);' | FileCheck --check-prefix=CHECK-DRIVER %s
-// The test is flaky with asan https://github.com/llvm/llvm-project/pull/148701.
-// UNSUPPORTED: asan
// CHECK-DRIVER: i = 10
// RUN: cat %s | clang-repl -Xcc -std=c++11 -Xcc -fno-delayed-template-parsing | FileCheck %s
extern "C" int printf(const char*,...);
diff --git a/clang/test/Interpreter/value-print-temporaries.cpp b/clang/test/Interpreter/value-print-temporaries.cpp
index 772ce69c00c25..331a7f7e274f4 100644
--- a/clang/test/Interpreter/value-print-temporaries.cpp
+++ b/clang/test/Interpreter/value-print-temporaries.cpp
@@ -3,9 +3,6 @@
//
// RUN: cat %s | clang-repl | FileCheck %s
-// The test is flaky with ASan: https://github.com/llvm/llvm-project/issues/102858
-// UNSUPPORTED: asan
-
int Dtors = 0;
struct S { ~S() { ++Dtors; } };
int f(S) { return 42; }
``````````
</details>
https://github.com/llvm/llvm-project/pull/230880
More information about the cfe-commits
mailing list