(root)/
gcc-13.2.0/
libstdc++-v3/
testsuite/
20_util/
shared_ptr/
creation/
99006.cc
// { dg-do compile { target { c++11 } } }
// { dg-require-effective-target hosted }

#include <memory>

auto p = std::make_shared<int[]>(2); // { dg-error "here" "" { target c++17_down } }
auto q = std::make_shared<int[2]>(1, 2); // { dg-error "here" }

// { dg-prune-output "enable_if<false" }
// { dg-prune-output "template constraint failure" }
// { dg-prune-output "no matching function" }