☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
g++.dg
/
cpp1z
/
class-deduction55.C
☽
☼
gcc/testsuite/g++.dg/cpp1z/class-deduction55.C
code
plain
raw
1
// PR c++/85883
2
// { dg-do compile { target c++17 } }
3
4
template <typename T>
5
struct Bar
6
{
7
Bar(T) { }
8
};
9
10
int
11
main ()
12
{
13
auto x = Bar(1);
14
auto y = new Bar(3);
15
}