Debian Codegraph @

gcc/testsuite/g++.dg/template/new13.C

raw
1 // PR c++/105803
2 // { dg-do compile }
3 // { dg-additional-options "-fchecking=2" }
4
5 namespace std {
6 template <typename> class shared_ptr {};
7 }
8 struct S {};
9 template <int> void build_matrices() {
10 std::shared_ptr<S>(new S);
11 }