Debian Codegraph @

gcc/testsuite/g++.dg/concepts/pr89036.C

raw
1 // { dg-do compile { target c++11 } }
2 // { dg-options "-fconcepts" }
3
4 template<typename T>
5 struct Y {
6 ~Y() requires(true) = default;
7 ~Y() requires(false) {}
8 };
9
10 Y<int> y;
11
12 template<typename T>
13 struct X {
14 ~X() requires(sizeof(T) == 8) = default;
15 ~X() requires(sizeof(T) != 8) {}
16 };
17
18 X<int> x;