c++: P0847R7 (deducing this) - xobj lambdas. [PR102609]
[official-gcc.git] / gcc / testsuite / g++.dg / cpp2a / paren-init12.C
blobc53b4b53542808b9349e835243e2c3792a6368eb
1 // PR c++/91363 - P0960R3: Parenthesized initialization of aggregates.
2 // { dg-do compile { target c++20 } }
4 struct A;
6 struct C {
7   operator A();
8 };
10 struct A {
11   C c;
14 C c;
15 A a(c);  // invokes C’s conversion function to A
17 // { dg-final { scan-assembler "_ZN1Ccv1AEv" } }