aboutsummaryrefslogtreecommitdiffstats
path: root/test/FrontendC/2007-10-01-BuildArrayRef.c
blob: e9037552308a20ec64d3bedbf201134ff639654a (plain)
1
2
3
4
5
6
7
8
// RUN: not %llvmgcc -S %s -o /dev/null |& grep "error: assignment of read-only location"
// PR 1603
int func()
{
   const int *arr;
   arr[0] = 1;
}