blob: bf44d7b28d58774d014a522f5e5d1a4107ee2b0f [file] [log] [blame]
// { dg-do compile }
// { dg-options "-O2 -fdump-tree-optimized" }
import gcc.attributes;
int func() @cold
{
return 0;
}
@cold int var = 0; // { dg-warning ".cold. attribute ignored" }
// { dg-final { scan-tree-dump "func\[^\r\n\]*(unlikely executed)" "optimized" } }