1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-01 08:23:21 +01:00
llvm-mirror/test/FrontendC/2007-10-01-BuildArrayRef.c

9 lines
151 B
C
Raw Normal View History

// RUN: not %llvmgcc -S %s -o /dev/null |& grep "error: assignment of read-only location"
2007-10-01 23:22:57 +02:00
// PR 1603
int func()
{
const int *arr;
arr[0] = 1;
}