comparison gcc/testsuite/g++.dg/cpp2a/concepts-nonbool2.C @ 152:2b5abeee2509

update gcc11
author anatofuz
date Mon, 25 May 2020 07:50:57 +0900
parents
children
comparison
equal deleted inserted replaced
145:1830386684a0 152:2b5abeee2509
1 // { dg-do compile { target concepts } }
2
3 template<class X, X x>
4 concept C = requires {
5 requires x; // { dg-error "bool" }
6 };
7
8 int main() {
9 C<int, 0>;
10 return 0;
11 }