summaryrefslogtreecommitdiff
path: root/tests/reuse2.c
diff options
context:
space:
mode:
authorrpj <rpj>2005-05-16 15:43:03 +0000
committerrpj <rpj>2005-05-16 15:43:03 +0000
commit8d2f6ea2182f796450bfd49401349d8e75d38f5b (patch)
tree4409e198d24100c5f1a460b5296054a56f15dd89 /tests/reuse2.c
parent09799a6fc1b6fca7e82c8e8ec3c1bdc06548e425 (diff)
''
Diffstat (limited to 'tests/reuse2.c')
-rw-r--r--tests/reuse2.c14
1 files changed, 13 insertions, 1 deletions
diff --git a/tests/reuse2.c b/tests/reuse2.c
index 9851dde..e573a31 100644
--- a/tests/reuse2.c
+++ b/tests/reuse2.c
@@ -84,15 +84,27 @@ enum {
};
+static int dummy = 19;
static long done = 0;
void * func(void * arg)
{
+ int i;
+ int j;
+
sched_yield();
+ for (i = 1; i < 10000; i++)
+ {
+ if (i * dummy % dummy == 0)
+ {
+ j = dummy;
+ }
+ }
+
InterlockedIncrement(&done);
- return (void *) 0;
+ return (void *) j;
}
int