Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/g++.dg/concepts/pr89036.C @ 145:1830386684a0
gcc-9.2.0
author | anatofuz |
---|---|
date | Thu, 13 Feb 2020 11:34:05 +0900 |
parents | |
children |
rev | line source |
---|---|
145 | 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; |