1 // Copyright 2014 The Go Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style
3 // license that can be found in the LICENSE file.
7 extern void testHandleLeaksCallback();
9 DWORD WINAPI testHandleLeaksFunc(LPVOID lpThreadParameter)
12 for(i = 0; i < 100; i++) {
13 testHandleLeaksCallback();
18 void testHandleLeaks()
21 h = CreateThread(NULL, 0, &testHandleLeaksFunc, 0, 0, NULL);
22 WaitForSingleObject(h, INFINITE);