[AArch64/arm] PR testsuite/85326 Avoid C++ tests when C++ compiler not present
[official-gcc.git] / gcc / testsuite / gcc.target / aarch64 / pr69245_2.c
blob6743f5d0ccca5ee6716504749255b0fdbe633a8f
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -march=armv8-a+fp" } */
4 #pragma GCC push_options
5 #pragma GCC target "arch=armv8-a+nofp"
6 static void
7 fn1 ()
10 #pragma GCC pop_options
11 float
12 fn2 (float a)
14 return a + 2.0;
17 /* { dg-final { scan-assembler-not "__addsf3" } } */