Debian Codegraph @

gcc/testsuite/g++.dg/ext/is_trivially_constructible7.C

raw
1 // PR c++/102535
2 // Verify __is_trivially_constructible works with multi-arg paren init of
3 // aggrs.
4
5 struct A { int x; };
6 struct B { float y; };
7 struct C { char z; };
8 struct D { A a; B b; C c; };
9
10 extern int n[1 + __is_trivially_constructible(D, A)];
11 extern int n[1 + __is_trivially_constructible(D, A, B)];
12 extern int n[1 + __is_trivially_constructible(D, A, B, C)];
13 #if __cpp_aggregate_paren_init
14 extern int n[1 + true];
15 #else
16 extern int n[1 + false];
17 #endif