Sign in
gnu
/
gcc
/
d769c5040874bf9546f2524f3f1d2a894165f92a
/
.
/
gcc
/
testsuite
/
g++.dg
/
ubsan
/
pr59306.C
blob: 621093c6b732c7090b1abbafc7b303c3b95f4531 [
file
] [
log
] [
blame
]
// { dg-do compile }
// { dg-options "-fsanitize=undefined" }
class
A
{
void
bar
(
void
(
A
::*)
(
int
));
void
foo
(
int
);
void
B
();
};
void
A
::
B
()
{
bar
(&
A
::
foo
);
}