llvm-6502/test/CFrontend/2007-10-01-BuildArrayRef.c

9 lines
147 B
C
Raw Normal View History

// RUN: %llvmgcc -S %s -o /dev/null |& grep "error: assignment of read-only location"
// PR 1603
int func()
{
const int *arr;
arr[0] = 1;
}