re PR tree-optimization/33291 (a+=2; a+=2 not simplified to a+=4; with -O3 ...
[gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / stdarg-1.c
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" } } */
13 /* { dg-final { cleanup-tree-dump "stdarg" } } */