Debian Codegraph @

gcc/testsuite/g++.dg/ubsan/pr105093.C

raw
1 // PR sanitizer/105093
2 // { dg-do compile }
3 // { dg-options "-O2 -fsanitize=undefined -Wno-volatile" }
4
5 struct X { X (); ~X (); };
6
7 volatile X
8 foo ()
9 {
10 X x;
11 return x;
12 }