aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp2a/lambda-requires5.C
blob: c81831381e382356c539418c19520c31a3cb706c (plain)
1
2
3
4
5
6
7
8
9
10
// PR c++/109961
// { dg-do compile { target c++20 } }

auto a = requires{
    []( int b ) consteval {
       if( b ) {
            throw b;
       }
    }( 0 );
};