Debian Codegraph @

libstdc++-v3/testsuite/20_util/shared_ptr/creation/99006.cc

raw
1 // { dg-do compile { target { c++11 } } }
2 // { dg-require-effective-target hosted }
3
4 #include <memory>
5
6 auto p = std::make_shared<int[]>(2); // { dg-error "here" "" { target c++17_down } }
7 auto q = std::make_shared<int[2]>(1, 2); // { dg-error "here" }
8
9 // { dg-prune-output "enable_if<false" }
10 // { dg-prune-output "template constraint failure" }
11 // { dg-prune-output "no matching function" }