gcc/testsuite/gcc.dg/tree-ssa/stdarg-1.c
raw| 1 | /* { dg-do compile } */ |
| 2 | /* { dg-options "-O2 -fdump-tree-stdarg" } */ |
| 3 | |
| 4 | #include <stdarg.h> |
| 5 | |
| 6 | /* This can be handled on all arches. If there is no va_start, registers don't need |
| 7 | to be saved. */ |
| 8 | void |
| 9 | f1 (int i, ...) |
| 10 | { |
| 11 | } |
| 12 | /* { dg-final { scan-tree-dump "f1: va_list escapes 0, needs to save 0 GPR units and 0 FPR units" "stdarg" } } */ |