[clang] Add clang warning if fp exception functions are called without appropriate flags/pragmas (#128239) (PR #187860)
Marcos Ramirez Joos via cfe-commits
cfe-commits at lists.llvm.org
Mon Apr 13 23:23:24 PDT 2026
================
@@ -0,0 +1,55 @@
+// RUN: %clang_cc1 -triple x86_64-unknown-unknown -verify=c,expected -DWRONG_FEXCEPT_T %s -ast-dump | FileCheck %s --check-prefixes=CHECK1,CHECK2
----------------
maarcosrmz wrote:
My first though would be to get rid of the explicit C++ tests, since they likely behave similarly to their counterparts in C. Is this option viable? Otherwise I think that I can at most get it down to 6 runs (instead of 8), because we already have implicit usage tests (here the NO_FEGETEXCEPT case) in `fenv-access-implicit.c`.
https://github.com/llvm/llvm-project/pull/187860
More information about the cfe-commits
mailing list