Debian Codegraph @

gcc/testsuite/g++.dg/modules/explicit-bool-1_a.H

raw
1 // PR c++/103752
2 // { dg-additional-options -fmodule-header }
3 // { dg-require-effective-target c++20 }
4
5 template<typename _T1, typename _T2>
6 struct pair
7 {
8 constexpr
9 explicit(__is_same(_T1, _T2))
10 pair()
11 { }
12
13 _T1 first;
14 _T2 second;
15 };
16
17 struct string
18 {
19 string() { }
20 string(const char* s) : s(s) { }
21
22 const char* s = "";
23 };