Debian Codegraph @

gcc/testsuite/g++.dg/opt/pr92610.C

raw
1 // PR rtl-optimization/92610
2 // { dg-do compile }
3 // { dg-options "-w -fdelete-dead-exceptions --param=sccvn-max-alias-queries-per-access=0 -fno-dse -fnon-call-exceptions -Os -funroll-loops -ftrapv" }
4
5 struct C { int x; ~C () {} };
6
7 int
8 main ()
9 {
10 C *buffer = new C[42];
11 buffer[-3].x = 42;
12 delete [] buffer;
13 }