Thread: Added  test_8674.cpp test.

svn path=/trunk/libs/thread/; revision=84691