Debian Codegraph @

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

raw
1 // PR c++/85883
2 // { dg-do compile { target c++17 } }
3
4 template <typename T1, typename T2, typename T3>
5 struct Bar
6 {
7 Bar(T1, T2, T3) { }
8 };
9
10 int
11 main ()
12 {
13 auto x = Bar(1, 2, 3);
14 auto y = new Bar(3, 4, 5);
15 }