[clang] [clang] Add test for CWG3129 (PR #206335)

Vlad Serebrennikov via cfe-commits cfe-commits at lists.llvm.org
Sun Jun 28 12:16:40 PDT 2026


================
@@ -29,6 +27,25 @@ static_assert(noexcept(noexcept(f())), "");
 #endif
 } // namespace cwg3128
 
+namespace cwg3129 { // cwg3129: 3.0
+
+float huge_f = 1e10000000000F;
+// expected-warning-re at -1 {{{{magnitude of floating-point constant too large for type 'float'.*}}}}
----------------
Endilll wrote:

```suggestion
// expected-warning-re at -1 {{magnitude of floating-point constant too large for type 'float'; the maximum is {{.*}}}}
```

https://github.com/llvm/llvm-project/pull/206335


More information about the cfe-commits mailing list