Debian Codegraph @

gcc/testsuite/g++.dg/cpp2a/lambda-targ15.C

raw
1 // PR c++/119981
2 // { dg-do compile { target c++20 } }
3
4 template<template<class> class P>
5 struct mp_copy_if{};
6
7 template<auto Fn>
8 struct g {
9 template<class> struct fn{};
10 };
11
12 template<typename>
13 void test3() {
14 mp_copy_if<g<[]{}>::template fn> b;
15 }
16
17 template void test3<int>();