Debian Codegraph @

gcc/testsuite/g++.dg/cpp2a/class-deduction-alias6.C

raw
1 // PR c++/93295
2 // { dg-do compile { target c++20 } }
3
4 template<typename T, bool B = false>
5 struct Foo {
6 Foo(T) {}
7 };
8
9 template<typename T> Foo(T) -> Foo<T>;
10 template<typename T> using Bar = Foo<T, true>;
11 Bar b{0};