Debian Codegraph @

gcc/testsuite/g++.dg/cpp2a/paren-init21.C

raw
1 // PR c++/92947 - Paren init of aggregates in unevaluated context.
2 // { dg-do compile { target c++20 } }
3
4 struct A {
5 int a;
6 int b;
7 };
8
9 int main()
10 {
11 static_assert(__is_constructible(A, int, int));
12 decltype(A(1,2)) foo;
13 bool b = noexcept(A(1,2));
14 }