Debian Codegraph @

gcc/testsuite/g++.dg/cpp1z/class-deduction60.C

raw
1 // PR c++/81486
2 // { dg-do compile { target c++17 } }
3
4 template <class T>
5 struct C {
6 C(T);
7 };
8
9 template <>
10 struct C<void> { };
11
12 C() -> C<void>;
13
14 int
15 main()
16 {
17 auto a = C{};
18 auto b = C();
19 }