Ignore:
Timestamp:
May 12, 2016, 10:14:36 AM (8 years ago)
Author:
Thierry Delisle <tdelisle@…>
Branches:
ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, ctor, deferred_resn, demangler, enum, forall-pointer-decay, gc_noraii, jacob/cs343-translation, jenkins-sandbox, master, memory, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, with_gc
Children:
bf5a70da
Parents:
273080f
Message:

added some basic tests and modified compilation to support them

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/examples/gc_no_raii/test/badlll.c

    r273080f rf1e42c1  
    66        int val;
    77};
     8
     9typedef gcpointer(List_t) LLL;
     10
     11#define MAX (1024 * 1024)
     12
     13LLL buildLLL(int sz)
     14{
     15        int i;
     16        LLL ll0, lll, llc;
     17        ctor(&ll0);
     18        ctor(&lll);
     19        ctor(&llc);
     20
     21        ll0 = gcmalloc();
     22        ll0->val = 0;
     23        lll = ll0;
     24
     25        return ll0;
     26}
Note: See TracChangeset for help on using the changeset viewer.