[clang] [Sema] Fix tautological bounds check warning with -fwrapv (PR #120480)
Nikita Popov via cfe-commits
cfe-commits at lists.llvm.org
Wed Dec 18 13:18:28 PST 2024
================
@@ -1,40 +1,72 @@
// RUN: %clang_cc1 -fsyntax-only -verify %s
+// RUN: %clang_cc1 -fsyntax-only -DFWRAPV -fwrapv -verify %s
----------------
nikic wrote:
I'm not very familiar with `-verify` tests, but may there is some way to avoid these ifdefs using prefixes? Something like this maybe?
```suggestion
// RUN: %clang_cc1 -fsyntax-only -DFWRAPV -fwrapv -verify=fwrapv %s
// fwrapv-no-diagnostics
```
https://github.com/llvm/llvm-project/pull/120480
More information about the cfe-commits
mailing list