aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp2a/explicit15.C
blob: 939456c93f04aa32e7879e91636a9073c5e99e2c (plain)
1
2
3
4
5
6
7
8
9
10
// PR c++/89836
// { dg-do compile { target c++20 } }

struct W { 
  constexpr explicit operator bool() { return true; };
};

struct U {
  explicit(W()) U(int);
};