1
0
mirror of https://github.com/c64scene-ar/llvm-6502.git synced 2025-02-25 03:30:37 +00:00
llvm-6502/test/CFrontend/2007-10-01-BuildArrayRef.c
2007-11-28 04:57:00 +00:00

9 lines
151 B
C

// 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;
}