blob: 51fffe52e7872abeea0a2358bdc30fb101c6efff [file] [log] [blame]
// { dg-do compile }
// { dg-options "-O2 -finline-functions -fno-ipa-icf" }
import gcc.attributes;
extern int t();
void func()
{
void nested_function() @noinline
{
t();
}
nested_function();
}
@noinline int var = 0; // { dg-warning ".noinline. attribute ignored" }
// { dg-final { scan-assembler "nested_function" } }