diff options
Diffstat (limited to 'Source/Checks/cm_cxx_make_unique.cxx')
-rw-r--r-- | Source/Checks/cm_cxx_make_unique.cxx | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Source/Checks/cm_cxx_make_unique.cxx b/Source/Checks/cm_cxx_make_unique.cxx new file mode 100644 index 0000000..a3ff68f --- /dev/null +++ b/Source/Checks/cm_cxx_make_unique.cxx @@ -0,0 +1,6 @@ +#include <memory> +int main() +{ + std::unique_ptr<int> u = std::make_unique<int>(0); + return *u; +} |