Fix bug in regression tests that ignored stderr output in RUN lines. Updated tests...
[oota-llvm.git] / test / CFrontend / 2007-10-01-BuildArrayRef.c
1 // RUN: not %llvmgcc -S %s -o /dev/null |& grep "error: assignment of read-only location"
2 // PR 1603
3 int func()
4 {
5    const int *arr;
6    arr[0] = 1;
7 }
8