Debian Codegraph @

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

raw
1 // { dg-do compile }
2 // { dg-options "-fsanitize=undefined" }
3
4 class A {
5 void bar (void (A::*) (int));
6 void foo (int);
7 void B ();
8 };
9
10 void A::B()
11 {
12 bar (&A::foo);
13 }