[clang] [clang] Fix array types comparison in getCommonSugaredType (PR #131649)

Serge Pavlov via cfe-commits cfe-commits at lists.llvm.org
Wed Mar 19 10:07:22 PDT 2025


================
@@ -0,0 +1,10 @@
+// RUN: %clang_cc1 -triple x86_64-linux-gnu %s
+
+bool a;
+constexpr const unsigned char c[] = { 5 };
+constexpr const unsigned char d[1] = { 0 };
+auto b = (a ? d : c);
+
+constexpr const unsigned char c1[][1] = {{ 5 }};
+constexpr const unsigned char d1[1][1] = {{ 0 }};
+auto b1 = (a ? d1 : c1);
----------------
spavloff wrote:

The test has been moved.

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


More information about the cfe-commits mailing list