[clang] [clang][Sema] Propagate qualifiers during derived-to-base conversion (PR #127824)

Aaron Ballman via cfe-commits cfe-commits at lists.llvm.org
Wed Mar 5 11:51:43 PST 2025


================
@@ -0,0 +1,34 @@
+// RUN: %clang_cc1 -std=c++20 -fsyntax-only -ast-dump %s | FileCheck %s
+
+// Ensure volatile is preserved during derived-to-base conversion. 
----------------
AaronBallman wrote:

I think we should add more test coverage. 1) `const`, 2) `const volatile`, 3) `address_space`, 4) `_Atomic` 5) maybe pointer authentication? restrict?

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


More information about the cfe-commits mailing list