llvm-mirror/test/CFrontend/2007-10-01-BuildArrayRef.c
Devang Patel 97960ce055 PR 1603 test case.
llvm-svn: 42502
2007-10-01 21:22:57 +00:00

9 lines
147 B
C

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