[clang] [Clang] Introduce a trait to determine the structure binding size (PR #131515)
via cfe-commits
cfe-commits at lists.llvm.org
Tue Mar 18 08:56:30 PDT 2025
================
@@ -0,0 +1,182 @@
+// RUN: %clang_cc1 %s -std=c++2c -fsyntax-only -verify
+// RUN: %clang_cc1 %s -std=c++2c -fsyntax-only -verify -fexperimental-new-constant-interpreter
+
+
+struct S0 {};
+struct S1 {int a;};
+struct S2 {int a; int b;};
+struct S3 {double a; int b; int c;};
----------------
cor3ntin wrote:
I added tests for all of these
https://github.com/llvm/llvm-project/pull/131515
More information about the cfe-commits
mailing list