[clang] [HLSL] Align language modes on 202x as default (PR #108662)

Chris B via cfe-commits cfe-commits at lists.llvm.org
Mon Sep 16 14:51:44 PDT 2024


================
@@ -37,7 +37,7 @@ _Static_assert(is_same<__decltype(4294967296), int64_t>::value, "4294967296 is i
 // Clang emits a warning that it is interpreting it as unsigned because that is
 // not conforming to the C standard.
 
-// expected-warning at +1{{integer literal is too large to be represented in type 'long' and is subject to undefined behavior under C++98, interpreting as 'unsigned long'; this literal will be ill-formed in C++11 onwards}}
+// expected-warning at +1{{integer literal is too large to be represented in a signed integer type, interpreting as unsigned}}
----------------
llvm-beanz wrote:

The test is verifying that Clang implements the 202x conforming literals feature. Clang doesn't implement the legacy behavior, so it is really the only behavior in Clang.

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


More information about the cfe-commits mailing list