Mercurial > hg > CbC > CbC_gcc
comparison gcc/testsuite/g++.dg/cpp2a/concepts-lambda7.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 // PR c++/95020 | |
2 // { dg-do compile { target c++2a } } | |
3 | |
4 template<typename> | |
5 void foo() { | |
6 auto t = [](auto v) { | |
7 static_assert(requires { *v; }); // { dg-error "static assertion failed" } | |
8 }; | |
9 t(0); | |
10 } | |
11 | |
12 void bar() { | |
13 foo<void>(); | |
14 } |