testcase: Add testcase for PR 117330 [PR117330]
[official-gcc.git] / gcc / testsuite / gcc.target / aarch64 / auto-init-6.c
blob0456c66f49605e2d41ca49210d38ff7c5ffa2e06
1 /* Verify pattern initialization for complex type automatic variables. */
2 /* { dg-do compile } */
3 /* { dg-options "-ftrivial-auto-var-init=pattern" } */
6 _Complex long double result;
8 _Complex long double foo()
10 _Complex float temp1;
11 _Complex double temp2;
12 _Complex long double temp3;
14 result = temp1 + temp2 + temp3;
15 return result;
18 /* { dg-final { scan-assembler-times "word\t-16843010" 14 } } */