[AArch64/arm] PR testsuite/85326 Avoid C++ tests when C++ compiler not present
[official-gcc.git] / gcc / testsuite / gcc.target / aarch64 / subsp.c
blob70d848c59d1f1e4df4314ca012c7a5d9d3b91ebc
1 /* { dg-options "-O" } */
3 int foo (void *);
5 int
6 f1 (int *x, long y)
8 return foo (__builtin_alloca (y));
11 int
12 f2 (int *x, int y)
14 char a[y + 1][16];
15 return foo (a);
18 /* { dg-final { scan-assembler "sub\tsp, sp, x\[0-9\]*\n" } } */
19 /* { dg-final { scan-assembler "sub\tsp, sp, x\[0-9\]*, sxtw 4\n" } } */