Debian Codegraph @

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

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