Projet_SETI_RISC-V/riscv-gnu-toolchain/gcc/gcc/testsuite/gcc.target/aarch64/auto-init-1.c
2023-03-06 14:48:14 +01:00

32 lines
615 B
C

/* Verify zero initialization for integer and pointer type automatic variables. */
/* { dg-do compile } */
/* { dg-options "-ftrivial-auto-var-init=zero -fdump-rtl-expand" } */
#ifndef __cplusplus
# define bool _Bool
#endif
enum E {
N1 = 0,
N2,
N3
};
extern void bar (char, short, int, enum E, long, long long, int *, bool);
void foo()
{
char temp1;
short temp2;
int temp3;
enum E temp4;
long temp5;
long long temp6;
int *temp7;
bool temp8;
bar (temp1, temp2, temp3, temp4, temp5, temp6, temp7, temp8);
return;
}
/* { dg-final { scan-rtl-dump-times "const_int 0" 11 "expand" } } */