]>
git.proxmox.com Git - rustc.git/blob - src/compiler-rt/test/asan/TestCases/Windows/beginthreadex.cc
1 // RUN: %clang_cl_asan -O0 %s -Fe%t
7 unsigned WINAPI
thread_proc(void *) {
8 volatile char stack_buffer
[42];
9 for (int i
= 0; i
< sizeof(stack_buffer
); ++i
)
15 HANDLE thr
= (HANDLE
)_beginthreadex(NULL
, 0, thread_proc
, NULL
, 0, NULL
);
18 if (WAIT_OBJECT_0
!= WaitForSingleObject(thr
, INFINITE
))