1 /* Check if the edge_cutoffa option to the function reordering plugin works as
3 /* { dg-require-section-exclude "" } */
4 /* { dg-require-linker-function-reordering-plugin "" } */
5 /* { dg-options "-O2 -freorder-functions=callgraph -ffunction-sections -Wl,-plugin-opt,file=linker.dump -Wl,-plugin-opt,edge_cutoff=a1000" } */
7 int __attribute__ ((noinline))
16 for (int i = 0; i< 1000; i++)
23 /* { dg-final-use { scan-file linker.dump "Not considering edge with weight 1000 and below" } } */
24 /* { dg-final-use { scan-file-not linker.dump "Callgraph group" } } */
25 /* { dg-final-use { remove-build-file "linker.dump" } } */