================
@@ -6,22 +6,54 @@
// expected-no-diagnostics
+// Tests that const-qualified aggregates without mutable members are implicitly
+// mapped as 'to' instead of 'tofrom' under defaultmap(tofrom:aggregate) and
+// explicit map clauses. Structs that have mutable members, or that are
+// non-const, must continue to be mapped 'tofrom'.
+
struct foo {
----------------
zahiraam wrote:
For the user definer mapper, it's already the case. The `FROM` is not dropped.
Please see added test in `map_const_aggregate.cpp`.
For the rest can we do that in a follow up PR?
https://github.com/llvm/llvm-project/pull/185918
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits