blob: e9037552308a20ec64d3bedbf201134ff639654a [file] [log] [blame]
Shih-wei Liaoe264f622010-02-10 11:10:31 -08001// RUN: not %llvmgcc -S %s -o /dev/null |& grep "error: assignment of read-only location"
2// PR 1603
3int func()
4{
5 const int *arr;
6 arr[0] = 1;
7}
8