aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp2a/concepts-throw1.C
blob: bc3e3b6891ab50be2b5509c8a0f3428587f64413 (plain)
1
2
3
4
5
6
7
8
// PR c++/112437
// { dg-do compile { target c++20 } }

struct S {};
template <class T>
concept Throwable = requires(T x) { throw x; };

bool a = Throwable<S>;