aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/ext/is_constructible6.C
blob: 7fce153fa759e63c9bf1b6b6f1fcbc2ee01dbd76 (plain)
1
2
3
4
5
6
7
8
9
10
// Verify we respect the order of trailing arguments passed to
// __is_constructible.

struct A { };
struct B { };
struct C { C(A, B); };

extern int n[true];
extern int n[ __is_constructible(C, A, B)];
extern int n[!__is_constructible(C, B, A)];