blob: e070fb9d42057566be9071868805313da00cda18 [file] [log] [blame]
// FIXME: This should use { target { c++11 && { ! c++20 } } }
// { dg-do compile { target { c++11 } } }
#include <memory>
auto p = std::make_shared<int[]>(2); // { dg-error "here" }
auto q = std::make_shared<int[2]>(1, 2); // { dg-error "here" }
// { dg-prune-output "static assertion failed" }