[AArch64/arm] PR testsuite/85326 Avoid C++ tests when C++ compiler not present
[official-gcc.git] / gcc / testsuite / gcc.target / aarch64 / pr83370.c
blobcde8876279f63c56e1a9ccc925195c136e4de7f1
1 /* { dg-do run } */
2 /* { dg-options "-O2" } */
4 typedef void (*fun) (void);
6 void __attribute__ ((noipa))
7 f (fun x1)
9 register fun x2 asm ("x16");
10 int arr[5000];
11 int *volatile ptr = arr;
12 asm ("mov %0, %1" : "=r" (x2) : "r" (x1));
13 x2 ();
16 void g (void) {}
18 int
19 main (void)
21 f (g);