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

template<auto F>
struct Foo {};

Foo<[](){ return 1 >= 0; }> foo1{};

Foo<[](){ return (1 > 0); }> foo2{};

Foo<[](){ return 1 > 0; }> foo3{};

Foo<[g = 1 > 0]{ return g; }> foo4{};