(root)/
gcc-13.2.0/
gcc/
testsuite/
gdc.dg/
attr_noinline1.d
// { 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" } }