[AArch64/arm] PR testsuite/85326 Avoid C++ tests when C++ compiler not present
[official-gcc.git] / gcc / testsuite / gcc.target / aarch64 / pr71727.c
blob05eef3e91919289e224cebc0d9bee77a3edd1324
1 /* { dg-do compile } */
2 /* { dg-options "-mstrict-align -O3" } */
4 struct test_struct_s
6 long a;
7 long b;
8 long c;
9 long d;
10 unsigned long e;
14 char _a;
15 struct test_struct_s xarray[128];
17 void
18 _start (void)
20 struct test_struct_s *new_entry;
22 new_entry = &xarray[0];
23 new_entry->a = 1;
24 new_entry->b = 2;
25 new_entry->c = 3;
26 new_entry->d = 4;
27 new_entry->e = 5;
29 return;
32 /* { dg-final { scan-assembler-times "mov\tx" 5 {target lp64} } } */
33 /* { dg-final { scan-assembler-not "add\tx0, x0, :" {target lp64} } } */