summaryrefslogtreecommitdiff
path: root/tests/cleanup3.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/cleanup3.c')
-rw-r--r--tests/cleanup3.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/cleanup3.c b/tests/cleanup3.c
index 0b88da1..2d44f79 100644
--- a/tests/cleanup3.c
+++ b/tests/cleanup3.c
@@ -104,6 +104,9 @@ mythread(void * arg)
assert(bag->started == 0);
bag->started = 1;
+#ifdef _MSC_VER
+#pragma inline_depth(0)
+#endif
pthread_cleanup_push(increment_pop_count, (void *) &pop_count);
sched_yield();
@@ -111,6 +114,9 @@ mythread(void * arg)
pop_count--;
pthread_cleanup_pop(0);
+#ifdef _MSC_VER
+#pragma inline_depth(8)
+#endif
return (void *) result;
}