Sign in
gnu
/
gcc
/
d769c5040874bf9546f2524f3f1d2a894165f92a
/
.
/
gcc
/
testsuite
/
g++.dg
/
ubsan
/
pr105093.C
blob: 49f75ed69cf80fe93956d9d5f0abefa24274aa85 [
file
] [
log
] [
blame
]
// PR sanitizer/105093
// { dg-do compile }
// { dg-options "-O2 -fsanitize=undefined -Wno-volatile" }
struct
X
{
X
();
~
X
();
};
volatile
X
foo
()
{
X x
;
return
x
;
}