diff options
author | Bruce Mitchener <bruce.mitchener@gmail.com> | 2013-02-01 01:24:59 +0700 |
---|---|---|
committer | Bruce Mitchener <bruce.mitchener@gmail.com> | 2013-02-01 01:24:59 +0700 |
commit | 5105bc966c9ac893a86901658debc7b2572b82d5 (patch) | |
tree | 07baa0d1b6d1c5e2b23bbb8f2cecfbb950e510f7 /tests | |
parent | 7b129450d48a3552dc8189d96ef695db8cc9c15b (diff) |
Add GC support for GC_MALLOC_UNCOLLECTABLE.
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/runner.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/runner.py b/tests/runner.py index 06b74caa..6d1a3cba 100755 --- a/tests/runner.py +++ b/tests/runner.py @@ -7893,7 +7893,7 @@ def process(filename): int main() { GC_INIT(); - void *local, *local2, *local3, *local4; + void *local, *local2, *local3, *local4, *local5; // Hold on to global, drop locals @@ -7938,6 +7938,9 @@ def process(filename): GC_REGISTER_FINALIZER_NO_ORDER(local3, finalizer, (void*)3, 0, 0); local4 = GC_MALLOC(12); GC_REGISTER_FINALIZER_NO_ORDER(local4, finalizer, (void*)4, 0, 0); + local5 = GC_MALLOC_UNCOLLECTABLE(12); + // This should never trigger since local5 is uncollectable + GC_REGISTER_FINALIZER_NO_ORDER(local5, finalizer, (void*)5, 0, 0); void **globalData = (void**)global; globalData[0] = local; |