blob: 0294dcc4bfb7000c6a3338f855f541d0760be27d [file] [log] [blame]
// { dg-lto-do link }
/* { dg-lto-options { "-O2 -fno-early-inlining -fno-implicit-constexpr -flto -fdump-ipa-inline-details" } } */
#include "inline-crossmodule-1.h"
int a::key ()
{
return 0;
}
/* { dg-final { scan-wpa-ipa-dump-times "Inlined ret1" 1 "inline" } } */
/* { dg-final { scan-wpa-ipa-dump-times "Inlined ret2" 1 "inline" } } */
/* { dg-final { scan-wpa-ipa-dump-times "Inlined key\[^\\n\]*\\\(cross module\\\)" 1 "inline" } } */
/* { dg-final { scan-wpa-ipa-dump-times "\\\(cross module\\\)" 1 "inline" } } */