rtl-ssa: Fix move range canonicalisation [PR115929]
[official-gcc.git] / gcc / testsuite / gcc.dg / pr83415.c
blob2fc85031505df6977cee99050aaff276e8e3202e
1 /* { dg-do compile } */
2 /* { dg-options "-O" } */
4 const short __attribute__((vector_size(16))) y = { 0, 1, 2, 3, 4, 5, 6, 7 };
6 int
7 main (int argc, short *argv[])
9 int i = argc;
10 y[i] = 7 - i; /* { dg-error "read-only" } */
11 return 0;