introduce TDF_compare_debug, omit OBJ_TYPE_REF casts with it
[official-gcc.git] / libgo / misc / cgo / test / issue8517_windows.c
bloba0b94c126f6330ed2fa5915b69e88a12d12d2872
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.
5 #include "windows.h"
7 extern void testHandleLeaksCallback();
9 DWORD WINAPI testHandleLeaksFunc(LPVOID lpThreadParameter)
11 int i;
12 for(i = 0; i < 100; i++) {
13 testHandleLeaksCallback();
15 return 0;
18 void testHandleLeaks()
20 HANDLE h;
21 h = CreateThread(NULL, 0, &testHandleLeaksFunc, 0, 0, NULL);
22 WaitForSingleObject(h, INFINITE);
23 CloseHandle(h);