Debian Codegraph @

gcc/testsuite/g++.dg/ipa/pr108802.C

raw
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -std=c++14 -fdump-ipa-inline -fno-early-inlining" } */
3 /* { dg-add-options bind_pic_locally } */
4
5 struct A {
6 int interesting(int x) { return 2 * x; }
7 };
8
9 int f1() {
10 A a;
11 return [&](auto&& f) { return (a.*f)(42); } (&A::interesting);
12 }
13
14 /* { dg-final { scan-ipa-dump "A::interesting\[^\\n\]*inline copy in int f1" "inline" } } */