Debian Codegraph @

gcc/testsuite/gdc.dg/torture/pr110516b.d

raw
1 // https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110516
2 // { dg-do compile }
3 // { dg-options "-fno-moduleinfo -fdump-tree-optimized" }
4 void fn110516(ubyte* ptr)
5 {
6 import core.volatile : volatileStore;
7 volatileStore(ptr, 0);
8 volatileStore(ptr, 0);
9 volatileStore(ptr, 0);
10 volatileStore(ptr, 0);
11 }
12 // { dg-final { scan-tree-dump-times " ={v} " 4 "optimized" } }