#include <builtins.swift>
// THIS-TEST-SHOULD-NOT-RUN

// CHeck that double writes are caught

main {
    int A[];
    A[id(1)] = 1;
    A[id(1)] = 2;
}

(int o) id (int i) {
    o = i;
}

#include <builtins.swift>
// THIS-TEST-SHOULD-NOT-RUN

// CHeck that double writes are caught

main {
    int A[];
    A[id(1)] = 1;
    A[id(1)] = 2;
    // Prevent A getting optimized out
    trace(A[1]);
}

(int o) id (int i) {
    o = i;
}

Fix 312 to prevent array being optimized out
Fix 312 to prevent array being optimized out

git-svn-id: 47705994653588c662f4ea400dfe88107361c0e2@5332 dc4e9af1-7f46-4ead-bba6-71afc04862de
