blob: bac004d3f9c2aff14e0471a1a3acf3374e1f328d [file] [log] [blame]
// { dg-do compile }
// { dg-options "-O2" }
import gcc.attributes;
int func()
{
int nested_function() @assumeUsed
{
return 1;
}
@assumeUsed int var = 0; // { dg-warning ".used. attribute ignored" }
return var;
}
// { dg-final { scan-assembler "nested_function" } }