[clang] [clang][bytecode]Fix-constant-eval-complex-discard (PR #177731)
Timm Baeder via cfe-commits
cfe-commits at lists.llvm.org
Fri Jan 23 20:51:50 PST 2026
================
@@ -0,0 +1,6 @@
+// RUN: %clang_cc1 -std=c11 -fsyntax-only -fexperimental-new-constant-interpreter %s
+
+void foo(void) {
+ // Complex comparison evaluated in a discarded context.
+ (void)(0 && (1i == 1i));
+}
----------------
tbaederr wrote:
Add this to an existing test case.
https://github.com/llvm/llvm-project/pull/177731
More information about the cfe-commits
mailing list