Sign in
gnu
/
gcc
/
d769c5040874bf9546f2524f3f1d2a894165f92a
/
.
/
gcc
/
testsuite
/
g++.dg
/
ubsan
/
pr60569.C
blob: df57c06bed6ae97db23e38743b536e480cd5963d [
file
] [
log
] [
blame
]
// PR sanitizer/60569
// { dg-do link }
// { dg-require-effective-target lto }
// { dg-options "-fsanitize=undefined -flto" }
struct
A
{
void
foo
();
struct
{
int
i
;
void
bar
()
{
i
=
0
;
}
}
s
;
};
void
A
::
foo
()
{
s
.
bar
();
}
int
main
()
{
}