view tests/mini/aa7.d @ 1651:cb960b882ca3 tip

bindings were moved to
author Moritz Warning <>
date Thu, 20 May 2010 20:05:03 +0200
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;