gcc/testsuite/gcc.dg/tree-prof/pr52027.c
raw| 1 | /* PR debug/52027 */ |
| 2 | /* { dg-require-effective-target freorder } */ |
| 3 | /* { dg-options "-O2 -freorder-blocks-and-partition -fno-reorder-functions" } */ |
| 4 | |
| 5 | void |
| 6 | foo (int len) |
| 7 | { |
| 8 | char array[1000]; |
| 9 | __builtin_memset (array, 0, len); |
| 10 | } |
| 11 | |
| 12 | int |
| 13 | main () |
| 14 | { |
| 15 | int i; |
| 16 | for (i = 0; i < 1000; i++) |
| 17 | foo (8); |
| 18 | return 0; |
| 19 | } |