summaryrefslogtreecommitdiff
path: root/Source/Checks/cm_cxx_auto_ptr.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'Source/Checks/cm_cxx_auto_ptr.cxx')
-rw-r--r--Source/Checks/cm_cxx_auto_ptr.cxx18
1 files changed, 0 insertions, 18 deletions
diff --git a/Source/Checks/cm_cxx_auto_ptr.cxx b/Source/Checks/cm_cxx_auto_ptr.cxx
deleted file mode 100644
index d3100fdc8..000000000
--- a/Source/Checks/cm_cxx_auto_ptr.cxx
+++ /dev/null
@@ -1,18 +0,0 @@
-#include <memory>
-
-std::auto_ptr<int> get_auto_ptr()
-{
- std::auto_ptr<int> ptr;
- ptr = std::auto_ptr<int>(new int(0));
- return ptr;
-}
-
-int use_auto_ptr(std::auto_ptr<int> ptr)
-{
- return *ptr;
-}
-
-int main()
-{
- return use_auto_ptr(get_auto_ptr());
-}