source: src/examples/gc_no_raii/test/gctest.c@ 0da3e2c

ADT aaron-thesis arm-eh ast-experimental cleanup-dtors ctor deferred_resn demangler enum forall-pointer-decay jacob/cs343-translation jenkins-sandbox memory new-ast new-ast-unique-expr new-env no_list persistent-indexer pthread-emulation qualifiedEnum resolv-new with_gc
Last change on this file since 0da3e2c was e297ceb, checked in by Thierry Delisle <tdelisle@…>, 9 years ago

added a version of gcmalloc that uses output arguments

  • Property mode set to 100644
File size: 190 bytes
RevLine 
[c44e622]1#include <fstream>
[15db1ab]2
3#include "gc.h"
4
[9421588a]5#warning default test
6
[15db1ab]7int main() {
8 sout | "Bonjour au monde!\n";
[bee4283]9
[e297ceb]10 for(int i = 0; i < 1000000; i++) {
11 gcpointer(int) anInt;
12 gcmalloc(&anInt);
13 }
[15db1ab]14}
Note: See TracBrowser for help on using the repository browser.