[clang] [llvm] [DebugInfo] Emit DW_AT_const_value for constexpr array static members (PR #182442)

Shivam Kunwar via cfe-commits cfe-commits at lists.llvm.org
Tue Mar 3 03:43:20 PST 2026


================
@@ -0,0 +1,23 @@
+// RUN: %clang_cc1 -triple x86_64-linux-gnu -std=c++17 -emit-llvm \
+// RUN:   -debug-info-kind=standalone -o - %s | FileCheck %s
+
+struct Test {
+  static inline constexpr char STR[] = "Hello";
+  static inline constexpr int NUMS[] = {1, 2, 3};
+  static inline constexpr unsigned char BYTES[] = {0xDE, 0xAD};
----------------
phyBrackets wrote:

Done, thanks!

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


More information about the cfe-commits mailing list