[clang] [compiler-rt] Define signed int overflow with -fms-compatibility (PR #198538)
Aaron Ballman via cfe-commits
cfe-commits at lists.llvm.org
Wed May 27 08:00:08 PDT 2026
================
@@ -0,0 +1,12 @@
+// RUN: %clang_cc1 -emit-llvm %s -o - | FileCheck %s --check-prefix=NOWRAP
+// RUN: %clang_cc1 -fno-wrapv -emit-llvm %s -o - | FileCheck %s --check-prefix=NOWRAP
+// RUN: %clang_cc1 -fno-wrapv -fms-compatibility -emit-llvm %s -o - | FileCheck %s --check-prefix=NOWRAP
+// RUN: %clang_cc1 -fwrapv -emit-llvm %s -o - | FileCheck %s --check-prefix=WRAP
+// RUN: %clang_cc1 -fms-compatibility -emit-llvm %s -o - | FileCheck %s --check-prefix=WRAP
----------------
AaronBallman wrote:
Thanks for checking! I'd say we can add it as a test case and document the behavior.
https://github.com/llvm/llvm-project/pull/198538
More information about the cfe-commits
mailing list