gcc/testsuite/gcc.dg/verbose-asm-2.c
raw| 1 | /* Ensure that the -fverbose-asm leads to source code information in the generated asm. */ |
| 2 | /* { dg-options "-fverbose-asm" } */ |
| 3 | |
| 4 | int test (int n) |
| 5 | { |
| 6 | int i; |
| 7 | int total = 0; |
| 8 | |
| 9 | for (i = 0; i < n; i++) |
| 10 | total += i * i; |
| 11 | |
| 12 | return total; |
| 13 | } |
| 14 | |
| 15 | /* { dg-final { scan-assembler "total = 0" } } */ |