$include_dir="/home/hyper-archives/boost-commit/include"; include("$include_dir/msg-header.inc") ?>
Subject: [Boost-commit] svn:boost r79991 - trunk/libs/thread/test
From: vicente.botet_at_[hidden]
Date: 2012-08-12 15:20:36
Author: viboes
Date: 2012-08-12 15:20:35 EDT (Sun, 12 Aug 2012)
New Revision: 79991
URL: http://svn.boost.org/trac/boost/changeset/79991
Log:
Thread: Added test for 7160 ticket
Added:
   trunk/libs/thread/test/test_7160.cpp   (contents, props changed)
Text files modified: 
   trunk/libs/thread/test/Jamfile.v2 |     1 +                                       
   1 files changed, 1 insertions(+), 0 deletions(-)
Modified: trunk/libs/thread/test/Jamfile.v2
==============================================================================
--- trunk/libs/thread/test/Jamfile.v2	(original)
+++ trunk/libs/thread/test/Jamfile.v2	2012-08-12 15:20:35 EDT (Sun, 12 Aug 2012)
@@ -188,6 +188,7 @@
           [ thread-run test_6130.cpp ]
           [ thread-run test_6170.cpp ]
           [ thread-run test_6174.cpp ]
+          [ thread-run test_7160.cpp ]
     ;
 
 
Added: trunk/libs/thread/test/test_7160.cpp
==============================================================================
--- (empty file)
+++ trunk/libs/thread/test/test_7160.cpp	2012-08-12 15:20:35 EDT (Sun, 12 Aug 2012)
@@ -0,0 +1,37 @@
+// Copyright (C) 2010 Vicente Botet
+//
+//  Distributed under the Boost Software License, Version 1.0. (See accompanying
+//  file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
+
+#define BOOST_DATE_TIME_POSIX_TIME_STD_CONFIG
+
+#include <iostream>
+#include <boost/thread.hpp>
+
+class ThreadClass
+{
+   public:
+	ThreadClass()
+	{
+	}
+
+	void operator()()
+	{
+	   return;
+	}
+};
+
+
+int main()
+{
+	boost::posix_time::ptime currentTimeUTC;
+
+	ThreadClass tc;
+	boost::thread t(tc);
+	t.join(); //causes a runtime access violation here
+
+	std::cout << "done" << std::endl;
+	//system("pause");
+
+	return 0;
+}