view tests/mini/aa7.d @ 883:b52d5de7783f

GC defines and linkage changes.
author Christian Kamm <kamm incasoftware de>
date Thu, 08 Jan 2009 18:20:02 +0100
parents f8c979770af3
line wrap: on
line source
// adapted from<n> to catch regressions early

module mini.aa7;

extern (C) int printf(char*, ...);
extern (C) void gc_collect();

int main(){
    char*[char] aa;

    char key = 'a';
    aa[key] = &key;
    assert(aa[key] == &key);
    assert(key in aa);

    return 0;