1 /* Test case to check if function foo gets split and the cold function
3 /* { dg-require-effective-target freorder } */
4 /* { dg-options "-O2 -freorder-blocks-and-partition -save-temps" } */
8 const char *sarr
[SIZE
];
12 __attribute__((noinline
))
19 for (i
= 0; i
< SIZE
; i
++)
24 for (i
= 0; i
< SIZE
; i
++)
30 main (int argc
, char *argv
[])
35 for (i
= 0; i
< 1000000; i
++)
40 /* { dg-final-use { scan-assembler "foo\[._\]+cold\[\._\]+0" { target *-*-linux* *-*-gnu* } } } */
41 /* { dg-final-use { scan-assembler "size\[ \ta-zA-Z0-0\]+foo\[._\]+cold\[\._\]+0" { target *-*-linux* *-*-gnu* } } } */